From 9bd84ff006a29c935ca761c9ebb8ae50106a429f Mon Sep 17 00:00:00 2001 From: Ophestra Date: Thu, 22 Oct 2026 23:25:47 +0900 Subject: internal/rosa/make: optionally omit target flag Similar to the previous change, this does not work on some configure scripts pretending to be autoconf. Signed-off-by: Ophestra --- internal/rosa/make.go | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'internal/rosa/make.go') diff --git a/internal/rosa/make.go b/internal/rosa/make.go index 0747d850..71eeaa25 100644 --- a/internal/rosa/make.go +++ b/internal/rosa/make.go @@ -41,6 +41,8 @@ type MakeHelper struct { Build string // Do not clear program prefix/suffix. DefaultName bool + // Omit the target argument. + AutoTarget bool // Use the dependency-free [GenericHelper] make. Early bool @@ -149,8 +151,12 @@ export CXX='clang++ --target=` + target + ` -isysroot=/system/` + arch + `' --program-suffix=''` } configure += ` \ - --host=` + host + ` \ + --host=` + host + + if !attr.AutoTarget { + configure += ` \ --target=` + host + } } if attr.Build != "" { -- cgit v1.3.1