Herman, you've done an incredible job to make this happen. Thank you very much for your time and your patience.
Let me precise that, macOS arm64 still supports --cpu=x86_64 and runs flawlessly the whole test suite. Funny, on benchmarks made on my Ventura M1 machine, I see no significant differences between x86_64+Rosetta or native arm64. I tested Herman's commit with the 5 following config on my Ventura M1, no error at all running the test suite!! This is rock solid ./configure --cpu=x86_64 --dwarf=5 --config-new_macho --config-codesign --cc=clang --prefix=/usr/local ./configure --cpu=x86_64 --dwarf=5 --config-new_macho --config-codesign --cc=clang --disable-static --prefix=/Users/jullien/tinycc/shared ./configure --dwarf=5 --config-new_macho --config-codesign --cc=clang --prefix=/usr/local ./configure --dwarf=5 --config-new_macho --config-codesign --cc=clang --disable-static --prefix=/Users/jullien/tinycc/shared ./configure --dwarf=5 --config-new_macho --config-codesign --cc=tcc --prefix=/Users/jullien/tinycc/static I would like to give ***** (five starts) to Herman. Christian -----Original Message----- From: tinycc-devel-bounces+eligis=orange...@nongnu.org [mailto:tinycc-devel-bounces+eligis=orange...@nongnu.org] On Behalf Of Herman ten Brugge via Tinycc-devel Sent: Friday, November 25, 2022 14:08 To: tinycc-devel Cc: Herman ten Brugge Subject: [Tinycc-devel] apple support I recently added code to allow the apple m1 to work. First I implemented the older apple code with position independent executables(pie). After that I implemented the newer macos code. The old code is the default. The new code can be selected with configure option '--config-new_macho'. I suspect that after some time the old code is not needed any more because every one has swicthed to the new code and then the old code and this option can be removed. For support of apple 13.0 (Ventura) I needed to add another option '--config-codesign'. This was needed because on this target executables needs to be signed. This is done by running 'codesign -f -s - executeble' after it is created. The code now runs fine at least on x86_64(10.6, 13.0) and arm64(12.3,13.0). _______________________________________________ Tinycc-devel mailing list Tinycc-devel@nongnu.org https://lists.nongnu.org/mailman/listinfo/tinycc-devel _______________________________________________ Tinycc-devel mailing list Tinycc-devel@nongnu.org https://lists.nongnu.org/mailman/listinfo/tinycc-devel