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 {
11971197 . filter ( |s| !s. starts_with ( "-O" ) && !s. starts_with ( "/O" ) )
11981198 . collect :: < Vec < String > > ( ) ;
11991199
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
12031202 // LLVM/etc are all properly compiled.
1204- if target. contains ( "apple-darwin" ) {
1203+ if matches ! ( c , CLang :: Cxx ) && target. contains ( "apple-darwin" ) {
12051204 base. push ( "-stdlib=libc++" . into ( ) ) ;
12061205 }
12071206
You can’t perform that action at this time.
0 commit comments