diff options
author | fanquake <fanquake@gmail.com> | 2021-04-28 15:27:32 +0800 |
---|---|---|
committer | fanquake <fanquake@gmail.com> | 2021-04-29 17:40:45 +0800 |
commit | cf971c9ea0e8637d36a7ab8b7b8804d9b89f1d9a (patch) | |
tree | b4388d750af16692dea8761e4fa1ba33a218fdb0 /depends/hosts | |
parent | fb66dbe786ff3028d8f2b0be503ddd3b36541798 (diff) |
build: use -isysroot over --sysroot on macOS
Diffstat (limited to 'depends/hosts')
-rw-r--r-- | depends/hosts/darwin.mk | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/depends/hosts/darwin.mk b/depends/hosts/darwin.mk index dd71697f0f..4e9187c9e0 100644 --- a/depends/hosts/darwin.mk +++ b/depends/hosts/darwin.mk @@ -100,7 +100,7 @@ darwin_CC=env -u C_INCLUDE_PATH -u CPLUS_INCLUDE_PATH \ -u LIBRARY_PATH \ $(clang_prog) --target=$(host) -mmacosx-version-min=$(OSX_MIN_VERSION) \ -B$(build_prefix)/bin -mlinker-version=$(LD64_VERSION) \ - --sysroot=$(OSX_SDK) \ + -isysroot$(OSX_SDK) \ -Xclang -internal-externc-isystem$(clang_resource_dir)/include \ -Xclang -internal-externc-isystem$(OSX_SDK)/usr/include darwin_CXX=env -u C_INCLUDE_PATH -u CPLUS_INCLUDE_PATH \ @@ -108,7 +108,7 @@ darwin_CXX=env -u C_INCLUDE_PATH -u CPLUS_INCLUDE_PATH \ -u LIBRARY_PATH \ $(clangxx_prog) --target=$(host) -mmacosx-version-min=$(OSX_MIN_VERSION) \ -B$(build_prefix)/bin -mlinker-version=$(LD64_VERSION) \ - --sysroot=$(OSX_SDK) \ + -isysroot$(OSX_SDK) \ -stdlib=libc++ -nostdinc++ \ -Xclang -cxx-isystem$(OSX_SDK)/usr/include/c++/v1 \ -Xclang -internal-externc-isystem$(clang_resource_dir)/include \ |