summaryrefslogtreecommitdiff
path: root/cc/compiler.go
diff options
context:
space:
mode:
author Treehugger Robot <android-test-infra-autosubmit@system.gserviceaccount.com> 2023-12-13 23:26:47 +0000
committer Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com> 2023-12-13 23:26:47 +0000
commit2553359fcb9a5d80c8cc7cd31d30546fc43c4427 (patch)
tree4d6a8df30b7aa54dddb05f5dc930daef97c0b4c8 /cc/compiler.go
parent50bf81caef5747c1688fa9e00bcfbcf9a4caac6d (diff)
parent3e22fe2193abc9475ac5f4de12633b38ed052454 (diff)
Merge "Avoid `-target riscv64-linux-androidVanillaIceCream`." into main am: 3e22fe2193
Original change: https://android-review.googlesource.com/c/platform/build/soong/+/2871232 Change-Id: Ic1815dba0d4585177009052d33d19b7c8961ecc2 Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
Diffstat (limited to 'cc/compiler.go')
-rw-r--r--cc/compiler.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/cc/compiler.go b/cc/compiler.go
index bb7885bc7..c9de1b053 100644
--- a/cc/compiler.go
+++ b/cc/compiler.go
@@ -479,7 +479,7 @@ func (compiler *baseCompiler) compilerFlags(ctx ModuleContext, flags Flags, deps
target += strconv.Itoa(android.FutureApiLevelInt)
} else {
apiLevel := nativeApiLevelOrPanic(ctx, version)
- target += apiLevel.String()
+ target += strconv.Itoa(apiLevel.FinalOrFutureInt())
}
}