Refactor compile flags
This commit is contained in:
parent
010e261dc7
commit
6f81520918
5 changed files with 21 additions and 24 deletions
|
|
@ -1,15 +1,15 @@
|
|||
|
||||
add_library(libc STATIC
|
||||
add_library(c STATIC
|
||||
src/malloc.cpp
|
||||
)
|
||||
|
||||
target_include_directories(libc
|
||||
target_include_directories(c
|
||||
PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}
|
||||
PUBLIC ${CMAKE_CURRENT_SOURCE_DIR}/include)
|
||||
|
||||
target_link_libraries(libc
|
||||
target_link_libraries(c
|
||||
zion_lib
|
||||
)
|
||||
|
||||
set_target_properties(libc PROPERTIES
|
||||
COMPILE_FLAGS "${CMAKE_CXX_FLAGS} -ffreestanding -mgeneral-regs-only")
|
||||
set_target_properties(c PROPERTIES
|
||||
COMPILE_FLAGS "${CMAKE_CXX_FLAGS} ${BASE_COMPILE_FLAGS}")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue