summaryrefslogtreecommitdiff
path: root/userland
diff options
context:
space:
mode:
authorAnton Kling <anton@kling.gg>2024-06-27 19:55:38 +0200
committerAnton Kling <anton@kling.gg>2024-06-27 19:56:18 +0200
commite107e3adfcf31fcf25cd441e00cd66990f049493 (patch)
treeea14fbd33a3b24154aa87be4cd3c8dd9b93e720d /userland
parentd315a82dbed1fd288702ebbcb869c744476433a8 (diff)
ws: Use -Ofast LTO optimizations.
This gives a massive speed increase
Diffstat (limited to 'userland')
-rw-r--r--userland/windowserver/Makefile5
1 files changed, 3 insertions, 2 deletions
diff --git a/userland/windowserver/Makefile b/userland/windowserver/Makefile
index d267350..e6afb22 100644
--- a/userland/windowserver/Makefile
+++ b/userland/windowserver/Makefile
@@ -1,5 +1,6 @@
CC="i686-sb-gcc"
-CFLAGS = -ggdb -O0 -Wall -Wextra -Wimplicit-fallthrough
+CFLAGS = -ggdb -Ofast -flto -Wall -Wextra -Wimplicit-fallthrough
+LDFLAGS=-flto -Ofast
BIN=ws
LIB=-lgcc
INC=-I../libgui/
@@ -13,4 +14,4 @@ clean:
rm $(OBJ) ws
$(BIN): $(OBJ)
- $(CC) -o $(BIN) $(CFLAGS) $(OBJ) $(LIB)
+ $(CC) -o $(BIN) $(LDFLAGS) $(OBJ) $(LIB)