fix(toolchain): do not pass the compiler's implicit include dirs
VoidBuildSystem CI / 4A2 · VBS installers (linux target) (push) Successful in 3m58s
VoidBuildSystem CI / 1 · Requirements (push) Successful in 7s
VoidBuildSystem CI / 2A · Linux build (debug) (push) Successful in 3m28s
VoidBuildSystem CI / 2A · Linux build (sanitizers) (push) Successful in 5m13s
VoidBuildSystem CI / 2A · Linux build (relwithdebinfo) (push) Successful in 4m4s
VoidBuildSystem CI / 3A · Linux test (debug) (push) Successful in 6m7s
VoidBuildSystem CI / 3A · Linux test (relwithdebinfo) (push) Successful in 6m2s
VoidBuildSystem CI / 3A · Linux test (sanitizers) (push) Successful in 1m19s
VoidBuildSystem CI / 2B · Windows Wine build (debug) (push) Successful in 1m38s
VoidBuildSystem CI / 2B · Windows Wine build (relwithdebinfo) (push) Successful in 3m11s
VoidBuildSystem CI / 3B · Windows Wine test (debug) (push) Successful in 16s
VoidBuildSystem CI / 3B · Windows Wine test (relwithdebinfo) (push) Successful in 17s
VoidBuildSystem CI / 4A2 · VBS installers (windows target) (push) Failing after 1m33s
VoidBuildSystem CI / 5 · Release (push) Failing after 9s
VoidBuildSystem CI / 4A2 · VBS installers (linux target) (push) Successful in 3m58s
VoidBuildSystem CI / 1 · Requirements (push) Successful in 7s
VoidBuildSystem CI / 2A · Linux build (debug) (push) Successful in 3m28s
VoidBuildSystem CI / 2A · Linux build (sanitizers) (push) Successful in 5m13s
VoidBuildSystem CI / 2A · Linux build (relwithdebinfo) (push) Successful in 4m4s
VoidBuildSystem CI / 3A · Linux test (debug) (push) Successful in 6m7s
VoidBuildSystem CI / 3A · Linux test (relwithdebinfo) (push) Successful in 6m2s
VoidBuildSystem CI / 3A · Linux test (sanitizers) (push) Successful in 1m19s
VoidBuildSystem CI / 2B · Windows Wine build (debug) (push) Successful in 1m38s
VoidBuildSystem CI / 2B · Windows Wine build (relwithdebinfo) (push) Successful in 3m11s
VoidBuildSystem CI / 3B · Windows Wine test (debug) (push) Successful in 16s
VoidBuildSystem CI / 3B · Windows Wine test (relwithdebinfo) (push) Successful in 17s
VoidBuildSystem CI / 4A2 · VBS installers (windows target) (push) Failing after 1m33s
VoidBuildSystem CI / 5 · Release (push) Failing after 9s
VoidLibrary's dependency detection exports /usr/include as a system
include directory; passing it as -isystem makes GCC drop its implicit
entry for that path, so libstdc++'s '#include_next <stdlib.h>' fails
('stdlib.h: No such file or directory'). This broke the self-hosted
install only in environments where the dependency finds Boost/OpenSSL.
Probe the implicit include search list for GCC as well as Clang and
skip those directories when lowering compile commands. Also log the
executed command at debug level.
Verified: 'vbs install' (self-hosted) now succeeds inside an Arch
container matching the CI image.
This commit is contained in:
1 parent
00e14bae98
commit
b2c869961a
3 files changed
+52
-1
No files matched your search
@@ -705,6 +705,14 @@ execute_graph(const Graph::BuildGraph &graph, State::StateStore &state,
|
||||
Platform::ProcessRequest preq;
|
||||
preq.executable = act.executable;
|
||||
preq.arguments = act.arguments;
|
||||
{
|
||||
std::string command_line = act.executable.string();
|
||||
for (const auto &arg : act.arguments) {
|
||||
command_line += ' ';
|
||||
command_line += arg;
|
||||
}
|
||||
Void::Log::debug("Build", "Exec {}", command_line);
|
||||
}
|
||||
if (!act.working_directory.empty()) {
|
||||
preq.working_directory = act.working_directory;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user