summaryrefslogtreecommitdiff
path: root/run_example
diff options
context:
space:
mode:
authorkkard2 <[email protected]>2025-09-24 16:14:54 +0200
committerkkard2 <[email protected]>2025-09-24 16:14:54 +0200
commitb76e677681bb2bc258246edcd2e4d7f7a1a7bd36 (patch)
tree3b18cd815214e7fea38063ed0a61c2a8b35ba378 /run_example
parente66e6c79886b77d4b7f1a72bbb5947aec0a46a07 (diff)
-flto makes a huge difference for transparency.c (which makes sense)
Diffstat (limited to 'run_example')
-rwxr-xr-xrun_example3
1 files changed, 2 insertions, 1 deletions
diff --git a/run_example b/run_example
index 046f066..a035d74 100755
--- a/run_example
+++ b/run_example
@@ -1,3 +1,4 @@
#!/bin/bash
cc -o example examples/platform/platform_x11.c examples/$1 \
- -lX11 -lm -Wall -Wextra -Wno-type-limits -Wno-pointer-sign -g -O3 -march=native && ./example
+ -lX11 -lm -Wall -Wextra -Wno-type-limits -Wno-pointer-sign -g \
+ -O3 -march=native -flto -ffast-math && ./example