build: fix unneeded dependency on npcgcc
All checks were successful
Build nix packages / build-matrix (am-kernels) (push) Successful in 2m24s
Build nix packages / build-matrix (rv32Cross.am-kernels-nemu) (push) Successful in 2m20s
Build nix packages / build-matrix (rv32Cross.am-kernels-npc) (push) Successful in 2m21s

This commit is contained in:
xinyangli 2024-08-15 16:42:02 +08:00
parent b99fc98d8d
commit f6c3a13e7f
Signed by: xin
SSH key fingerprint: SHA256:qZ/tzd8lYRtUFSrfBDBMcUqV4GHKxqeqRA3huItgvbk
7 changed files with 13 additions and 15 deletions

View file

@ -2,9 +2,8 @@ add_executable(hello
hello.c
)
target_include_directories(hello PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/../include)
target_link_libraries(hello PRIVATE am-${ARCH} klib npcgcc)
target_compile_options(hello PRIVATE -nostdlib -nodefaultlibs)
target_link_options(hello PRIVATE -nostdlib -nodefaultlibs)
target_link_libraries(hello PRIVATE am-${ARCH} klib)
# -- Extract binary file from ELF
add_custom_command(TARGET hello