am,build: put libm into am-native export interface
All checks were successful
Build abstract machine with nix / build-packages (abstract-machine) (push) Successful in 16s
Build abstract machine with nix / build-packages (nemu) (push) Successful in 7s
Build abstract machine with nix / build-packages (nemu-lib) (push) Successful in 7s
Build abstract machine with nix / build-packages (rv32Cross.abstract-machine) (push) Successful in 11s
Build npc tests / npc-build (flow) (push) Successful in 8s
Build npc tests / npc-build (flow-simlib) (push) Successful in 9s
All checks were successful
Build abstract machine with nix / build-packages (abstract-machine) (push) Successful in 16s
Build abstract machine with nix / build-packages (nemu) (push) Successful in 7s
Build abstract machine with nix / build-packages (nemu-lib) (push) Successful in 7s
Build abstract machine with nix / build-packages (rv32Cross.abstract-machine) (push) Successful in 11s
Build npc tests / npc-build (flow) (push) Successful in 8s
Build npc tests / npc-build (flow-simlib) (push) Successful in 9s
- TODO: don't no why libm is needed, need further investigation.
This commit is contained in:
parent
1f3e64bb37
commit
3d64dbd200
2 changed files with 2 additions and 2 deletions
|
@ -21,5 +21,5 @@ set_target_properties(
|
|||
find_package(SDL2 REQUIRED)
|
||||
target_link_libraries(
|
||||
am-native
|
||||
PUBLIC SDL2::SDL2 dl
|
||||
PUBLIC SDL2::SDL2 dl m
|
||||
PRIVATE klib_interface am_interface)
|
||||
|
|
|
@ -4,7 +4,7 @@ foreach(TEST IN LISTS TEST_SOURCES)
|
|||
# TODO: Run tests in other configurations
|
||||
if(__PLATFORM_NATIVE__)
|
||||
add_executable(${TEST} ${TEST}.c)
|
||||
target_link_libraries(${TEST} PRIVATE am_interface klib_interface klib m)
|
||||
target_link_libraries(${TEST} PRIVATE am_interface klib_interface klib)
|
||||
target_link_libraries(${TEST} PRIVATE am-native)
|
||||
add_test(NAME ${TEST} COMMAND ${TEST})
|
||||
endif()
|
||||
|
|
Loading…
Reference in a new issue