diff options
| author | Ophestra <cat@gensokyo.uk> | 2026-10-22 23:25:47 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2026-10-22 23:25:47 +0900 |
| commit | 9bd84ff006a29c935ca761c9ebb8ae50106a429f (patch) | |
| tree | 819bd296aa7a4e92d3723c835229ad81d3dd09f6 /internal/rosa/make.go | |
| parent | 8341f6ed26bb8b9e4269e594d2f6b864d534546b (diff) | |
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 <cat@gensokyo.uk>
Diffstat (limited to 'internal/rosa/make.go')
| -rw-r--r-- | internal/rosa/make.go | 8 |
1 files changed, 7 insertions, 1 deletions
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 != "" { |
