You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
[compiler-rt][NFC] Apply -nostdinc++ only to C++ source in profile runtime
Avoid passing the C++-specific `-nostdinc++` flag to C source files in
the profile runtime library, which triggers warnings when building with GCC:
cc1: warning: command-line option ‘-nostdinc++’ is valid for C++/ObjC++ but not for C
We only need `-nostdinc++` for `InstrProfilingRuntime.cpp` to prevent accidental
inclusion of the C++ standard library headers. This patch scopes the flag to
that file using `set_source_files_properties()` and removes the flag from
the global `EXTRA_FLAGS`.
0 commit comments