Hi!
Nice, it compiles on my MBP 2019/Sequoia now!
Many thanks!
Chris
Sent: Tuesday, March 18, 2025 at 6:06 PM
From: yangrq.lam...@gmail.com
To: tinycc-devel@nongnu.org
Cc: "YANG Ruqing" <yangrq.lam...@gmail.com>
Subject: [Tinycc-devel] Add fake `_Float16` type to enable the latest `math.h` on macOS
From: yangrq.lam...@gmail.com
To: tinycc-devel@nongnu.org
Cc: "YANG Ruqing" <yangrq.lam...@gmail.com>
Subject: [Tinycc-devel] Add fake `_Float16` type to enable the latest `math.h` on macOS
Hi all,
I just pushed a patch (a06c608625b1164890dc4358bdaa8d9164a87497) to treat `_Float16` as a `short` type in tcc
as a workaround for compilation errors caused by the latest `math.h` in the macOS SDK.
In the file, there are some new function prototypes for 16-bit floats,
which are unlikely to be used by TCC users,
but leads to much failure on macOS.
Before the patch:
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/math.h:614: error: ';' expected (got "__fabsf16”)
After the patch:
Nothing special happened.
Best,
Ruqing (waterlens)
_______________________________________________
Tinycc-devel mailing list
Tinycc-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/tinycc-devel
I just pushed a patch (a06c608625b1164890dc4358bdaa8d9164a87497) to treat `_Float16` as a `short` type in tcc
as a workaround for compilation errors caused by the latest `math.h` in the macOS SDK.
In the file, there are some new function prototypes for 16-bit floats,
which are unlikely to be used by TCC users,
but leads to much failure on macOS.
Before the patch:
> /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX.sdk/usr/include/math.h:614: error: ';' expected (got "__fabsf16”)
After the patch:
Nothing special happened.
Best,
Ruqing (waterlens)
_______________________________________________
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