This is less important for libluna, as it is built into libc, but is needed to link programs compiled inside Luna with libos.
This commit is contained in:
parent
6e69d37d62
commit
30ff704342
@ -55,3 +55,8 @@ target_compile_options(luna-freestanding PRIVATE -mno-80387 -mno-mmx -mno-sse -m
|
|||||||
target_compile_definitions(luna-freestanding PUBLIC ARCH_X86_64)
|
target_compile_definitions(luna-freestanding PUBLIC ARCH_X86_64)
|
||||||
target_compile_definitions(luna PUBLIC ARCH_X86_64)
|
target_compile_definitions(luna PUBLIC ARCH_X86_64)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
add_custom_command(
|
||||||
|
TARGET luna
|
||||||
|
COMMAND "${CMAKE_COMMAND}" -E copy ${CMAKE_CURRENT_BINARY_DIR}/libluna.a ${LUNA_BASE}/usr/lib/libluna.a
|
||||||
|
)
|
||||||
|
@ -24,3 +24,8 @@ target_include_directories(os PUBLIC ${LUNA_BASE}/usr/include)
|
|||||||
if("${LUNA_ARCH}" MATCHES "x86_64")
|
if("${LUNA_ARCH}" MATCHES "x86_64")
|
||||||
target_compile_definitions(os PUBLIC ARCH_X86_64)
|
target_compile_definitions(os PUBLIC ARCH_X86_64)
|
||||||
endif()
|
endif()
|
||||||
|
|
||||||
|
add_custom_command(
|
||||||
|
TARGET os
|
||||||
|
COMMAND "${CMAKE_COMMAND}" -E copy ${CMAKE_CURRENT_BINARY_DIR}/libos.a ${LUNA_BASE}/usr/lib/libos.a
|
||||||
|
)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user