[build1k] Create differ build folder for cross target platforms

rules:
- host target: build_${buildArch}
- cross target: build_${buildTarget}_{buildArch}
This commit is contained in:
halx99 2023-07-10 14:24:08 +08:00
parent 7ade6fefad
commit 09a3a950ae
1 changed files with 14 additions and 9 deletions

View File

@ -878,7 +878,12 @@ if (!$options.setupOnly) {
$CONFIG_ALL_OPTIONS += $xopts
}
if ("$($xopts)".IndexOf('-B') -eq -1) {
$is_host_target = ($BUILD_TARGET -eq 'win32') -or ($BUILD_TARGET -eq 'linux') -or ($BUILD_TARGET -eq 'osx')
if ($is_host_target) { # wheither building host target?
$BUILD_DIR = "build_$($options.a)"
} else {
$BUILD_DIR = "build_${BUILD_TARGET}_$($options.a)"
}
}
else {
foreach ($opt in $xopts) {