From a19d9597cb60aa1723260376035bb952303ef124 Mon Sep 17 00:00:00 2001 From: Elliott Hughes Date: Wed, 13 Dec 2023 12:10:28 -0800 Subject: [PATCH] Avoid `-target riscv64-linux-androidVanillaIceCream`. clang silently ignores such things rather than reporting them as errors. With this change, verbose.log.gz says android10000 instead, as expected. Bug: https://buganizer.corp.google.com/issues/315788463#comment24 Test: treehugger Change-Id: I0d92b0747912f28065de0d2dc6b4d33d1c2c9857 --- cc/compiler.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()) } }