build: fix unneeded dependency on npcgcc
All checks were successful
All checks were successful
This commit is contained in:
parent
b99fc98d8d
commit
f6c3a13e7f
7 changed files with 13 additions and 15 deletions
|
@ -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
|
||||||
|
|
|
@ -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"
|
||||||
},
|
},
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue