Skip to content

Commit b206217

Browse files
committed
Tools: Do not use nostdinc++ in ToolsBootstrap for older GCC
1 parent 2a42295 commit b206217

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Tools/ToolsBootstrap.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1097,6 +1097,10 @@ void buildCompileCommandPOSIX(CommandLine* cmd, const char* compiler, const char
10971097
if (useClang) {
10981098
CommandLine_arg(cmd, "-nostdinc++");
10991099
}
1100+
else {
1101+
CommandLine_arg(cmd, "-DSC_COMPILER_ENABLE_STD_CPP=1"); // Only GCC 13+ supports nostdinc++
1102+
}
1103+
11001104
CommandLine_arg(cmd, "-o");
11011105
CommandLine_argQuoted(cmd, output);
11021106
CommandLine_arg(cmd, "-c");

0 commit comments

Comments
 (0)