diff --git a/utils/gn/secondary/compiler-rt/lib/BUILD.gn b/utils/gn/secondary/compiler-rt/lib/BUILD.gn index ce32282c722..43bc7fdf351 100644 --- a/utils/gn/secondary/compiler-rt/lib/BUILD.gn +++ b/utils/gn/secondary/compiler-rt/lib/BUILD.gn @@ -1,10 +1,10 @@ group("lib") { deps = [ "//compiler-rt/lib/profile" ] if (current_os == "linux") { - deps += [ - "//compiler-rt/lib/msan", - "//compiler-rt/lib/ubsan_minimal", - ] + deps += [ "//compiler-rt/lib/msan" ] + } + if (current_os == "linux" || current_os == "android") { + deps += [ "//compiler-rt/lib/ubsan_minimal" ] } if (current_os != "win") { deps += [