summaryrefslogtreecommitdiff
path: root/cc
diff options
context:
space:
mode:
authorRoopesh Nataraja <roopeshr@codeaurora.org>2021-05-06 13:00:39 -0700
committerRoopesh Nataraja <roopeshr@codeaurora.org>2021-08-11 12:49:16 -0700
commitc1ab716951e9ea655b95d7c6183ac2aa0631cf66 (patch)
treed34c1e9d6d08c942b3508bf79fa613f05e173f8c /cc
parent055401852b37507878967f14170c383cad9ee9b7 (diff)
soong: SDCLANG: Switch from TARGET_PRODUCT to TARGET_BOARD_PLATFORM
Switch from TARGET_PRODUCT to TARGET_BOARD_PLATFORM in SDCLANG to provide the flexibility to use a common codebase across multiple products. OEMs/ODMs can continue to differentiate between their products using TARGET_PRODUCT. Bug: 188236288 CRs-Fixed: 2938615 Change-Id: I3d1c24303d95fa4376d55217b25cdb8e58b5899d
Diffstat (limited to 'cc')
-rw-r--r--cc/config/global.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cc/config/global.go b/cc/config/global.go
index 61c5bf1f5..214587914 100644
--- a/cc/config/global.go
+++ b/cc/config/global.go
@@ -330,7 +330,7 @@ func setSdclangVars() {
sdclangAEFlag := ""
sdclangFlags := ""
- product := os.Getenv("TARGET_PRODUCT")
+ product := os.Getenv("TARGET_BOARD_PLATFORM")
aeConfigPath := os.Getenv("SDCLANG_AE_CONFIG")
sdclangConfigPath := os.Getenv("SDCLANG_CONFIG")
sdclangSA := os.Getenv("SDCLANG_SA_ENABLED")