[llvm] 936f247 - [gn build] fix mac build after 0c425b43b952f4

Nico Weber via llvm-commits llvm-commits at lists.llvm.org
Thu Jan 27 17:35:26 PST 2022


Author: Nico Weber
Date: 2022-01-27T20:35:17-05:00
New Revision: 936f247ade44c6582db63b24bb042cd860923261

URL: https://github.com/llvm/llvm-project/commit/936f247ade44c6582db63b24bb042cd860923261
DIFF: https://github.com/llvm/llvm-project/commit/936f247ade44c6582db63b24bb042cd860923261.diff

LOG: [gn build] fix mac build after 0c425b43b952f4

Added: 
    

Modified: 
    llvm/utils/gn/secondary/compiler-rt/lib/asan/BUILD.gn

Removed: 
    


################################################################################
diff  --git a/llvm/utils/gn/secondary/compiler-rt/lib/asan/BUILD.gn b/llvm/utils/gn/secondary/compiler-rt/lib/asan/BUILD.gn
index bd68b69b1a367..f8dd59482afbe 100644
--- a/llvm/utils/gn/secondary/compiler-rt/lib/asan/BUILD.gn
+++ b/llvm/utils/gn/secondary/compiler-rt/lib/asan/BUILD.gn
@@ -163,9 +163,12 @@ if (current_toolchain == host_toolchain) {
 
   shared_library("asan_shared_library") {
     output_dir = crt_current_out_dir
-    output_name = "clang_rt.asan$crt_current_target_suffix"
-    if (current_os == "win") {
+    if (current_os == "mac") {
+      output_name = "clang_rt.asan_osx_dynamic"
+    } else if (current_os == "win") {
       output_name = "clang_rt.asan_dynamic$crt_current_target_suffix"
+    } else {
+      output_name = "clang_rt.asan$crt_current_target_suffix"
     }
     configs -= [ "//llvm/utils/gn/build:llvm_code" ]
     configs += [ "//llvm/utils/gn/build:crt_code" ]


        


More information about the llvm-commits mailing list