More flags for just mac

This commit is contained in:
Bruce Hill 2025-03-28 18:19:58 -04:00
parent bf9a467fdb
commit f5018f9b7b

View File

@ -174,6 +174,11 @@ int main(int argc, char *argv[])
" -fno-signaling-nans -fno-trapping-math")); " -fno-signaling-nans -fno-trapping-math"));
} }
#ifdef __APPLE__
cflags = Texts(cflags, " -I/opt/homebrew/include");
ldflags = Texts(cflags, " -L/opt/homebrew/lib -Wl,-rpath,/opt/homebrew/lib");
#endif
if (show_codegen.length > 0 && Text$equal_values(show_codegen, Text("pretty"))) if (show_codegen.length > 0 && Text$equal_values(show_codegen, Text("pretty")))
show_codegen = Text("sed '/^#line/d;/^$/d' | indent -o /dev/stdout | bat -l c -P"); show_codegen = Text("sed '/^#line/d;/^$/d' | indent -o /dev/stdout | bat -l c -P");