diff options
| author | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2025-11-14 11:22:06 +0100 |
|---|---|---|
| committer | Friedemann Kleint <Friedemann.Kleint@qt.io> | 2025-11-19 21:56:33 +0100 |
| commit | ff516322980df82cffa6b37a9b410ad87833f709 (patch) | |
| tree | 2b08bc96f4e9cc5fdb0e1aa776411fc8148d6f83 | |
| parent | bce5860c3855cc5d86aa5e7df59a35f9c9bb0455 (diff) | |
Remove the option -nostdinc, which causes it to complain about
"'type_traits' file not found".
The option was apparently added for historic reasons
and is apparently no longer needed.
Fixes: PYSIDE-3235
Pick-to: 6.10
Change-Id: I3ab4bd9bf1e523e2c6ab6e655ef8d2cc4e865599
Reviewed-by: Samuli Piippo <samuli.piippo@qt.io>
Reviewed-by: Cristian Maureira-Fredes <cristian.maureira-fredes@qt.io>
| -rw-r--r-- | sources/shiboken6/ApiExtractor/clangparser/compilersupport.cpp | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/sources/shiboken6/ApiExtractor/clangparser/compilersupport.cpp b/sources/shiboken6/ApiExtractor/clangparser/compilersupport.cpp index 560b26b63..d17c97782 100644 --- a/sources/shiboken6/ApiExtractor/clangparser/compilersupport.cpp +++ b/sources/shiboken6/ApiExtractor/clangparser/compilersupport.cpp @@ -488,16 +488,10 @@ QByteArrayList detectVulkan() // For MSVC, we set the MS compatibility version and let Clang figure out its own // options and include paths. -// For the others, we pass "-nostdinc" since libclang tries to add it's own system -// include paths, which together with the clang compiler paths causes some clash -// which causes std types not being found and construct -I/-F options from the -// include paths of the host compiler. - -static QByteArray noStandardIncludeOption() { return QByteArrayLiteral("-nostdinc"); } // The clang builtin includes directory is used to find the definitions for // intrinsic functions and builtin types. It is necessary to use the clang -// includes to prevent redefinition errors. The default toolchain includes +// includes to prevent rqedefinition errors. The default toolchain includes // should be picked up automatically by clang without specifying // them implicitly. @@ -650,7 +644,6 @@ QByteArrayList emulatedCompilerOptions(LanguageLevel level) case Compiler::Clang: headerPaths.append(gppInternalIncludePaths(compilerFromCMake(u"clang++"_s), _compilerArguments)); - result.append(noStandardIncludeOption()); break; case Compiler::Gpp: if (needsClangBuiltinIncludes()) |
