about summary refs log tree commit diff
path: root/compiler/rustc_codegen_llvm/src/errors.rs
diff options
context:
space:
mode:
authorZalathar <Zalathar@users.noreply.github.com>2023-09-21 12:43:11 +1000
committerZalathar <Zalathar@users.noreply.github.com>2023-10-17 23:18:05 +1100
commit9eb70d63357606ab3e70337aee7606b4fa185f60 (patch)
tree828642d3c9a3ae3232b88e4c26516c3b8116077f /compiler/rustc_codegen_llvm/src/errors.rs
parent2e57d647b039ec993f4fdf03571c9039092d74e2 (diff)
downloadrust-9eb70d63357606ab3e70337aee7606b4fa185f60.tar.gz
rust-9eb70d63357606ab3e70337aee7606b4fa185f60.zip
Don't pass `-stdlib=libc++` when building C files on macOS
When using *Command Line Tools for Xcode* version 15.0, clang will warn about
`argument unused during compilation: '-stdlib=libc++'` if this flag is present
when compiling C files only (i.e. no C++ files).

To avoid this warning, we can add the flag only to CXXFLAGS and not to CFLAGS.
Diffstat (limited to 'compiler/rustc_codegen_llvm/src/errors.rs')
0 files changed, 0 insertions, 0 deletions