Re: [Tinycc-devel] Windows: To add .res to the extensions allowed by the preprocessor?

2022-03-11 Thread grischka

Antoni Gual Via wrote:

Hi
To build a Windows app, windres from gcc is required. By default it uses
the gcc preprocessor to resolve the defines, and gcc has its
dependencies, so a complete Mingw install is required. A command line
option in windres allows to use any other preprocessor, and using tcc's
would make the thing almost selfcontained. Unfortunately tcc's preprocessor
does'nt allow the extension .res for its inputs.
I have a tcc I built recently from the mob using the busybox Grichka made
for us poor Windows users. Which file should I check to add .res extension
to the allowed inputs for the preprocessor?


See the -xc option. As in
$ windres --preprocessor="tcc -E -xc -DRC_INVOKED" -O coff ...

winresrc.h (needed by windows.h with RC_INVOKED) and dependencies
can be found in the winapi-full-for-0.9.27 pack.

-- gr



Regards
Antonio




___
Tinycc-devel mailing list
Tinycc-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/tinycc-devel


[Tinycc-devel] Announce: tcc works ROOTB as aarch64 on Linux M1

2022-03-11 Thread Christian Jullien
I've got access on Linux M1 machine where macOS has been replaced by Linux.

It compiles ROOTB from mod and pass all tests.

 

$ uname -a

Linux gcc103.fsffrance.org
5.17.0-rc6-asahi-next-20220301-25570-gc09fe28af1d3 #1 SMP PREEMPT Thu Mar 10
09:33:48 CET 2022 aarch64 GNU/Linux

 

$ gcc -v

.

gcc version 11.2.0 (Debian 11.2.0-16)

 

C.

___
Tinycc-devel mailing list
Tinycc-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/tinycc-devel