[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Tinycc-devel] build-tcc.bat: %PROCESSOR_ARCHITECTURE% environment detec

From: YX Hao
Subject: [Tinycc-devel] build-tcc.bat: %PROCESSOR_ARCHITECTURE% environment detection issue
Date: Thu, 16 Feb 2017 19:31:49 +0800

Hi grischka and all,

You make it build 64 bits type by all the following:
if %PROCESSOR_ARCHITEW6432%_==AMD64_ set T=64

Maybe we could discus on this.

You know that in 64 bits host 'PROCESSOR_ARCHITECTURE=AMD64' (no
PROCESSOR_ARCHITEW6432 exists on win 10, 'ProgramFiles=C:\Program Files')
and in 32 bits host 'PROCESSOR_ARCHITECTURE=x86' (and
'ProgramFiles=C:\Program Files (x86)').

So, if we want to build the tcc interpreter in the same type with the cmd
host we are running on, I think we only use '%PROCESSOR_ARCHITECTURE%', that
is enough. Or, it will always build the 64 bits type by the OS type, but not
the building environment.

More, there is another mistake, if I am right. There is no option for a 32
bits gcc to cross build the 64 bits tcc yet. It always produce 32 bits pe

My build (msys + mingw32, win10 64bits) fails on 'tiny_impdef libtcc.dll -o
libtcc\libtcc.def'. The ' tiny_impdef ' takes 64 bits version
'IMAGE_FILE_MACHINE'. But 'libtcc.dll' is still a 32 bits pe file.

Maybe, remove the second line is a good idea. It keeps all things the same
type as build toolchain and works well.

YX Hao

reply via email to

[Prev in Thread] Current Thread [Next in Thread]