[llvm] b299814 - [gn build/mac] Use -mmacos-version-min instead of -mmacosx-version-min
Nico Weber via llvm-commits
llvm-commits at lists.llvm.org
Thu Jul 7 14:56:47 PDT 2022
Author: Nico Weber
Date: 2022-07-07T23:56:37+02:00
New Revision: b2998143a74af436be24b9cbe92f27a35f8a9759
URL: https://github.com/llvm/llvm-project/commit/b2998143a74af436be24b9cbe92f27a35f8a9759
DIFF: https://github.com/llvm/llvm-project/commit/b2998143a74af436be24b9cbe92f27a35f8a9759.diff
LOG: [gn build/mac] Use -mmacos-version-min instead of -mmacosx-version-min
The two flags do the same thing, but the OS is called macOS these days.
(The new flag is 5 years old: https://reviews.llvm.org/D32796)
No behavior change.
Added:
Modified:
llvm/utils/gn/build/BUILD.gn
Removed:
################################################################################
diff --git a/llvm/utils/gn/build/BUILD.gn b/llvm/utils/gn/build/BUILD.gn
index 3c462d4351887..5e7131cd0ded2 100644
--- a/llvm/utils/gn/build/BUILD.gn
+++ b/llvm/utils/gn/build/BUILD.gn
@@ -52,9 +52,9 @@ config("compiler_defaults") {
ldflags += [ "-miphoneos-version-min=8.0" ]
}
if (current_os == "mac") {
- asmflags += [ "-mmacosx-version-min=10.10" ]
- cflags += [ "-mmacosx-version-min=10.10" ]
- ldflags += [ "-mmacosx-version-min=10.10" ]
+ asmflags += [ "-mmacos-version-min=10.10" ]
+ cflags += [ "-mmacos-version-min=10.10" ]
+ ldflags += [ "-mmacos-version-min=10.10" ]
}
assert(symbol_level == 0 || symbol_level == 1 || symbol_level == 2,
More information about the llvm-commits
mailing list