[gn build] fix mac build after 0c425b43b9

This commit is contained in:
Nico Weber 2022-01-27 20:34:38 -05:00
parent 875ee937ae
commit 936f247ade
1 changed files with 5 additions and 2 deletions

View File

@ -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" ]