b.liu | e958203 | 2025-04-17 19:18:16 +0800 | [diff] [blame^] | 1 | --- a/scons-local-4.0.1/SCons/Platform/__init__.py |
2 | +++ b/scons-local-4.0.1/SCons/Platform/__init__.py | ||||
3 | @@ -63,6 +63,8 @@ def platform_default(): | ||||
4 | care about the machine architecture. | ||||
5 | """ | ||||
6 | osname = os.name | ||||
7 | + if 'PLATFORM' in os.environ: | ||||
8 | + return os.environ['PLATFORM'] | ||||
9 | if osname == 'java': | ||||
10 | osname = os._osType | ||||
11 | if osname == 'posix': |