File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -1197,11 +1197,10 @@ impl Build {
1197
1197
. filter ( |s| !s. starts_with ( "-O" ) && !s. starts_with ( "/O" ) )
1198
1198
. collect :: < Vec < String > > ( ) ;
1199
1199
1200
- // If we're compiling on macOS then we add a few unconditional flags
1201
- // indicating that we want libc++ (more filled out than libstdc++) and
1202
- // we want to compile for 10.7. This way we can ensure that
1200
+ // If we're compiling C++ on macOS then we add a flag indicating that
1201
+ // we want libc++ (more filled out than libstdc++), ensuring that
1203
1202
// LLVM/etc are all properly compiled.
1204
- if target. contains ( "apple-darwin" ) {
1203
+ if matches ! ( c , CLang :: Cxx ) && target. contains ( "apple-darwin" ) {
1205
1204
base. push ( "-stdlib=libc++" . into ( ) ) ;
1206
1205
}
1207
1206
You can’t perform that action at this time.
0 commit comments