VirtualBox

Changeset 3647 in kBuild


Ignore:
Timestamp:
Nov 3, 2024 2:33:51 AM (5 months ago)
Author:
bird
Message:

envwin.cmd: ARM64 tweak for tcc.exe/amd64.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/kBuild/envwin.cmd

    r3113 r3647  
    66
    77REM
    8 REM Copyright (c) 2005-2010 knut st. osmundsen <[email protected]>
     8REM Copyright (c) 2005-2024 knut st. osmundsen <[email protected]>
    99REM
    1010REM This file is part of kBuild.
     
    452452if ".%KBUILD_HOST_CPU%" == ".k10"       set _KBUILD_HOST_ARCH=amd64
    453453if not ".%_KBUILD_HOST_ARCH%" == "."    goto have_host_arch
    454 REM try guess from PROCESSOR_ARCHITEW6432 and PROCESSOR_ARCHITECTURE
     454REM try guess from PROCESSOR_ARCHITECTURE, PROCESSOR_ARCHITEW6432, and
     455REM PROCESSOR_IDENTIFIER (latter for arm running non-native shells (tcc.exe)).
    455456set _KBUILD_TMP=%PROCESSOR_ARCHITECTURE%
    456457if not ".%PROCESSOR_ARCHITEW6432%" == "." set _KBUILD_TMP=%PROCESSOR_ARCHITEW6432%
     
    462463if "%_KBUILD_TMP%" == "x64"             set _KBUILD_HOST_ARCH=amd64
    463464if "%_KBUILD_TMP%" == "X64"             set _KBUILD_HOST_ARCH=amd64
     465if /i "%PROCESSOR_IDENTIFIER:~0,5%" == "ARMv8" set _KBUILD_HOST_ARCH=arm64
     466if /i "%PROCESSOR_IDENTIFIER:~0,5%" == "ARMv9" set _KBUILD_HOST_ARCH=arm64
    464467if not ".%_KBUILD_HOST_ARCH%" == "."    goto have_host_arch
    465468echo error: Cannot figure KBUILD_HOST_ARCH!
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette