mirror of
https://github.com/usatiuk/ficus.git
synced 2025-10-29 00:27:52 +01:00
Better compile options
This commit is contained in:
@@ -1,9 +1,32 @@
|
||||
|
||||
add_executable(kernel.elf)
|
||||
|
||||
target_compile_options(kernel.elf PUBLIC $<$<COMPILE_LANGUAGE:CXX>:-fstack-protector-all -Wno-pointer-arith -fsanitize=undefined -ffreestanding -nostdlib -mno-red-zone -mcmodel=large -fno-exceptions -fno-rtti>)
|
||||
target_compile_options(kernel.elf PUBLIC $<$<COMPILE_LANGUAGE:C>:-fstack-protector-all -Wno-pointer-arith -fsanitize=undefined -ffreestanding -nostdlib -mno-red-zone -mcmodel=large>)
|
||||
target_link_options(kernel.elf PUBLIC -ffreestanding -nostdlib -mno-red-zone -mcmodel=large -fno-exceptions -fno-rtti)
|
||||
target_compile_options(kernel.elf PUBLIC $<$<COMPILE_LANGUAGE:CXX>:
|
||||
-fstack-protector-all
|
||||
-Wno-pointer-arith
|
||||
-fsanitize=undefined
|
||||
-ffreestanding
|
||||
-nostdlib
|
||||
-mno-red-zone
|
||||
-mcmodel=large
|
||||
-fno-exceptions
|
||||
-fno-rtti
|
||||
>)
|
||||
target_compile_options(kernel.elf PUBLIC $<$<COMPILE_LANGUAGE:C>:
|
||||
-fstack-protector-all
|
||||
-Wno-pointer-arith
|
||||
-fsanitize=undefined
|
||||
-ffreestanding
|
||||
-nostdlib
|
||||
-mno-red-zone
|
||||
-mcmodel=large>)
|
||||
target_link_options(kernel.elf PUBLIC
|
||||
-ffreestanding
|
||||
-nostdlib
|
||||
-mno-red-zone
|
||||
-mcmodel=large
|
||||
-fno-exceptions
|
||||
-fno-rtti)
|
||||
target_include_directories(kernel.elf PRIVATE ${tools}/limine/prefix/include)
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user