diff --git a/BUILD.gn b/BUILD.gn index c9f1531fc60..5fd2b638359 100644 --- a/BUILD.gn +++ b/BUILD.gn @@ -16,7 +16,7 @@ group("default") { deps = [ ":runtime", ] - if (checkout_llvm) { + if (defined(checkout_llvm) && checkout_llvm) { deps += [ ":llvm_codegen" ] @@ -126,7 +126,7 @@ group("analysis_server") { } group("check_llvm") { - if (checkout_llvm) { + if (defined(checkout_llvm) && checkout_llvm) { deps = [ "runtime/llvm_codegen/test", ] @@ -134,7 +134,7 @@ group("check_llvm") { } group("llvm_codegen") { - if (checkout_llvm) { + if (defined(checkout_llvm) && checkout_llvm) { deps = [ "runtime/llvm_codegen/codegen", "runtime/llvm_codegen/bit", diff --git a/runtime/bin/BUILD.gn b/runtime/bin/BUILD.gn index 34ce64721d5..dd9ea2cc6d5 100644 --- a/runtime/bin/BUILD.gn +++ b/runtime/bin/BUILD.gn @@ -924,7 +924,7 @@ executable("run_vm_tests") { "..:libdart_nosnapshot_with_precompiler", "//third_party/zlib", ] - if (checkout_llvm) { + if (defined(checkout_llvm) && checkout_llvm) { deps += [ "//runtime/llvm_codegen/bit:test" ] } include_dirs = [