diff options
| author | Nico Weber <nicolasweber@gmx.de> | 2019-07-31 17:12:33 +0000 |
|---|---|---|
| committer | Nico Weber <nicolasweber@gmx.de> | 2019-07-31 17:12:33 +0000 |
| commit | f3014984cf71b9cdd2c7955ea8303f3728e186cc (patch) | |
| tree | a0bb0964e0c7319a899e6f91596ae0dd3e0ad023 /llvm/utils/gn/secondary/compiler-rt/lib/builtins/BUILD.gn | |
| parent | e4001bacc2c62e16b03ead066043228fea77a8d7 (diff) | |
| download | bcm5719-llvm-f3014984cf71b9cdd2c7955ea8303f3728e186cc.tar.gz bcm5719-llvm-f3014984cf71b9cdd2c7955ea8303f3728e186cc.zip | |
gn build: Make builtin library build on macOS
For now, it only builds the x86_64 slice.
Differential Revision: https://reviews.llvm.org/D65513
llvm-svn: 367449
Diffstat (limited to 'llvm/utils/gn/secondary/compiler-rt/lib/builtins/BUILD.gn')
| -rw-r--r-- | llvm/utils/gn/secondary/compiler-rt/lib/builtins/BUILD.gn | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/llvm/utils/gn/secondary/compiler-rt/lib/builtins/BUILD.gn b/llvm/utils/gn/secondary/compiler-rt/lib/builtins/BUILD.gn index 9af7d6b3845..c1fbf08834f 100644 --- a/llvm/utils/gn/secondary/compiler-rt/lib/builtins/BUILD.gn +++ b/llvm/utils/gn/secondary/compiler-rt/lib/builtins/BUILD.gn @@ -11,7 +11,11 @@ declare_args() { static_library("builtins") { output_dir = crt_current_out_dir - output_name = "clang_rt.builtins$crt_current_target_suffix" + if (current_os == "mac") { + output_name = "clang_rt.osx" + } else { + output_name = "clang_rt.builtins$crt_current_target_suffix" + } complete_static_lib = true cflags = [ "-fPIC", |

