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>
This commit is contained in:
Ralph Sennhauser 2025-06-29 14:34:21 +02:00
parent 904957c50f
commit 707abee34d
No known key found for this signature in database

View file

@ -40,8 +40,6 @@ if [ "$with_system_premake5" = "false" ]; then
premake_command="../../libraries/source/premake-core/bin/premake5"
fi
# 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
if [ "$OS" != "Darwin" ]; then
# shellcheck disable=SC2086