From 7b6d9b956d11380a8eb5c20cb51b2205f847ab52 Mon Sep 17 00:00:00 2001 From: Dan Willemsen Date: Wed, 29 Nov 2017 20:48:03 -0800 Subject: [PATCH] Expose $(prefix)CLANG_SUPPORTED to make So that we can switch clang on and off for windows from just Soong. Bug: 69933068 Test: grep CLANG_SUPPORTED out/soong/make_vars-aosp_arm.mk Change-Id: Ic304c1138ee2302c5733ef465bd462a0a25e949f --- cc/makevars.go | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/cc/makevars.go b/cc/makevars.go index f7f8b6010..2d71db69b 100644 --- a/cc/makevars.go +++ b/cc/makevars.go @@ -279,6 +279,10 @@ func makeVarsToolchain(ctx android.MakeVarsContext, secondPrefix string, // This is used by external/gentoo/... ctx.Strict("CLANG_CONFIG_"+target.Arch.ArchType.Name+"_"+typePrefix+"TRIPLE", toolchain.ClangTriple()) + + ctx.Strict(makePrefix+"CLANG_SUPPORTED", "true") + } else { + ctx.Strict(makePrefix+"CLANG_SUPPORTED", "") } ctx.Strict(makePrefix+"CC", gccCmd(toolchain, "gcc"))