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

@ -13,7 +13,7 @@ add_executable(bench
fib/fib.c fib/fib.c
) )
target_link_libraries(bench am-${ARCH} klib npcgcc) target_link_libraries(bench am-${ARCH} klib)
# -- Extract binary file from ELF # -- Extract binary file from ELF
add_custom_command(TARGET bench add_custom_command(TARGET bench

View file

@ -941,11 +941,11 @@
"pre-commit-hooks": "pre-commit-hooks_5" "pre-commit-hooks": "pre-commit-hooks_5"
}, },
"locked": { "locked": {
"lastModified": 1723709622, "lastModified": 1723711136,
"narHash": "sha256-xL65SDXbE+5sqS2Vv+JEQyrPMrNW3Crc6NmZYy6L9QM=", "narHash": "sha256-wwVG49IBLtyb2mZ9kNGojuJSYa4evf/2IEcdx8HZxKA=",
"ref": "refs/heads/master", "ref": "refs/heads/master",
"rev": "1f3e64bb379756394c4aea7a55aaf37555bd5a6c", "rev": "3d64dbd200ab3e944b99df76ba884abb2cdbbef6",
"revCount": 124, "revCount": 125,
"type": "git", "type": "git",
"url": "https://git.xinyang.life/xin/ysyx-workbench" "url": "https://git.xinyang.life/xin/ysyx-workbench"
}, },

View file

@ -10,7 +10,7 @@ add_executable(demo
main.c main.c
) )
target_include_directories(demo PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/../include) target_include_directories(demo PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/../include)
target_link_libraries(demo PRIVATE am-${ARCH} klib npcgcc) target_link_libraries(demo PRIVATE am-${ARCH} klib)
# -- Extract binary file from ELF # -- Extract binary file from ELF
add_custom_command(TARGET demo add_custom_command(TARGET demo

View file

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

View file

@ -1,7 +1,7 @@
add_executable(yield-os add_executable(yield-os
yield-os.c yield-os.c
) )
target_link_libraries(yield-os PRIVATE am-${ARCH} klib npcgcc) target_link_libraries(yield-os PRIVATE am-${ARCH} klib)
# -- Extract binary file from ELF # -- Extract binary file from ELF
add_custom_command(TARGET yield-os add_custom_command(TARGET yield-os

View file

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

View file

@ -11,10 +11,10 @@ add_executable(am-tests
tests/vm.c tests/vm.c
main.c main.c
) )
# set_property(SOURCE tests/audio/audio-data.S APPEND PROPERTY OBJECT_DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/tests/audio/little-star.pcm) # set_propertygSOURCE tests/audio/audio-data.S APPEND PROPERTY OBJECT_DEPENDS ${CMAKE_CURRENT_SOURCE_DIR}/tests/audio/little-star.pcm)
target_include_directories(am-tests PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/../include) target_include_directories(am-tests PRIVATE ${CMAKE_CURRENT_SOURCE_DIR}/../include)
target_link_libraries(am-tests PRIVATE am-${ARCH} klib npcgcc) target_link_libraries(am-tests PRIVATE am-${ARCH} klib)
# -- Extract binary file from ELF # -- Extract binary file from ELF
add_custom_command(TARGET am-tests add_custom_command(TARGET am-tests