Skip to content
Snippets Groups Projects
Commit 352d0812 authored by Felix Fietkau's avatar Felix Fietkau
Browse files

scons: override the platform instead of using the host one - fixes build...

scons: override the platform instead of using the host one - fixes build issues on non-linux systems

SVN-Revision: 31620
parent 7dc263dd
No related branches found
No related tags found
No related merge requests found
export PLATFORM=posix
SCONS_VARS = \
CC="$(TARGET_CC)" \
CXX="$(TARGET_CXX)" \
......
--- a/engine/SCons/Platform/__init__.py
+++ b/engine/SCons/Platform/__init__.py
@@ -63,6 +63,8 @@ def platform_default():
care about the machine architecture.
"""
osname = os.name
+ if 'PLATFORM' in os.environ:
+ return os.environ['PLATFORM']
if osname == 'java':
osname = os._osType
if osname == 'posix':
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment