feat: lru eviction policy on page caches
[lunaix-os.git] / lunaix-os / config / make-cc
index 416ae68828fa23ea3f86e5b9735846b462134acf..7a1899c327622e7abe2fdb86482ceb0b42dc3176 100644 (file)
@@ -1,7 +1,15 @@
 CC := i686-elf-gcc
 AS := i686-elf-as
 
+
+ARCH_OPT := -D__ARCH_IA32
 O := -O2
-W := -Wall -Wextra
-CFLAGS := -std=gnu99 -ffreestanding $(O) $(W)
+W := -Wall -Wextra -Wno-unknown-pragmas \
+               -Wno-unused-function \
+               -Wno-unused-but-set-variable \
+               -Wno-unused-parameter \
+               -Wno-unused-variable\
+               -Werror=incompatible-pointer-types
+               
+CFLAGS := -std=gnu99 -ffreestanding $(O) $(W) $(ARCH_OPT)
 LDFLAGS := -ffreestanding $(O) -nostdlib -lgcc
\ No newline at end of file