thradams / cake

Cake a C23 front end and transpiler written in C
http://thradams.com/cake/index.html
GNU General Public License v3.0
553 stars 26 forks source link

clang compile fails due to DT_DIR undefined #202

Closed gtoal closed 2 months ago

gtoal commented 2 months ago

This needs to be added to the linux clang build options:

diff build.c* 250d249 < " -D_DEFAULT_SOURCE"

thradams commented 2 months ago

Thanks, fix added. I also added at readme.md

Apart of that, for some reason

           " -Wno-unknown-pragmas "
           " -Wno-multichar "

is not working on clang.

thradams commented 2 months ago

found the problem.. -Wall must be before the -Wno..