Don't export HOSTTYPE in update-workspace.sh

Exporting HOSTTYPE prevents cross compilation as HOSTTYPE is used to
override target host arch instead of detecting it from chosen compiler.
This then results in the wrong arch specific source files to be
included. So just don't set it by default and let it to the user to set
it if he so chooses.

Signed-off-by: Ralph Sennhauser <ralph.sennhauser@gmail.com>
(cherry picked from commit 707abee34d)
Signed-off-by: Itms <itms@wildfiregames.com>
This commit is contained in:
Ralph Sennhauser 2025-06-29 14:34:21 +02:00 committed by Itms
parent dae7a8c394
commit bf4eee555f
No known key found for this signature in database
GPG key ID: C7E52BD14CE14E09

View file

@ -42,8 +42,6 @@ fi
echo
# If we're in bash then make HOSTTYPE available to Premake, for primitive arch-detection
export HOSTTYPE="$HOSTTYPE"
# Now run Premake to create the makefiles
echo "Premake args: ${premake_args}"
if [ "$OS" != "Darwin" ]; then