File tree Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Expand file tree Collapse file tree 1 file changed +21
-0
lines changed Original file line number Diff line number Diff line change @@ -218,6 +218,27 @@ while :; do
218
218
shift
219
219
done
220
220
221
+ # Set cross build
222
+ CPUName=$( uname -p)
223
+ # Some Linux platforms report unknown for platform, but the arch for machine.
224
+ if [ $CPUName == " unknown" ]; then
225
+ CPUName=$( uname -m)
226
+ fi
227
+ case $CPUName in
228
+ i686)
229
+ if [ $__BuildArch != x86 ]; then
230
+ __CrossBuild=1
231
+ echo " Set CrossBuild for $__BuildArch build"
232
+ fi
233
+ ;;
234
+ x86_64)
235
+ if [ $__BuildArch != x64 ]; then
236
+ __CrossBuild=1
237
+ echo " Set CrossBuild for $__BuildArch build"
238
+ fi
239
+ ;;
240
+ esac
241
+
221
242
# Set the remaining variables based upon the determined build configuration
222
243
__IntermediatesDir=" $__rootbinpath /obj/$__BuildOS .$__BuildArch .$__BuildType /Native"
223
244
__BinDir=" $__rootbinpath /$__BuildOS .$__BuildArch .$__BuildType /Native"
You can’t perform that action at this time.
0 commit comments