mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 21:03:12 +00:00
CMake: re-enable cargo-test under ASAN
With autocxx/cxx gone, this seems to work fine now.
This commit is contained in:
parent
e98a794d1c
commit
2871f5070f
1 changed files with 7 additions and 12 deletions
|
@ -157,18 +157,13 @@ if(DEFINED ASAN)
|
|||
set(cargo_target_opt "--target" ${Rust_CARGO_TARGET})
|
||||
endif()
|
||||
|
||||
# cargo-test is failing to link w/ ASAN enabled. For some reason it is picking up autocxx ffi
|
||||
# dependencies, even though `carg test` is supposed to be for rust-only code w/ no ffi dependencies.
|
||||
# TODO: Figure this out and fix it.
|
||||
if(NOT DEFINED ASAN)
|
||||
add_test(
|
||||
NAME "cargo-test"
|
||||
COMMAND env ${VARS_FOR_CARGO} cargo test ${CARGO_FLAGS} --package fish-rust --target-dir ${rust_target_dir} ${cargo_target_opt}
|
||||
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
|
||||
)
|
||||
set_tests_properties("cargo-test" PROPERTIES SKIP_RETURN_CODE ${SKIP_RETURN_CODE})
|
||||
add_test_target("cargo-test")
|
||||
endif()
|
||||
add_test(
|
||||
NAME "cargo-test"
|
||||
COMMAND env ${VARS_FOR_CARGO} cargo test ${CARGO_FLAGS} --package fish-rust --target-dir ${rust_target_dir} ${cargo_target_opt}
|
||||
WORKING_DIRECTORY "${CMAKE_SOURCE_DIR}"
|
||||
)
|
||||
set_tests_properties("cargo-test" PROPERTIES SKIP_RETURN_CODE ${SKIP_RETURN_CODE})
|
||||
add_test_target("cargo-test")
|
||||
|
||||
add_test(
|
||||
NAME "cargo-test-widestring"
|
||||
|
|
Loading…
Reference in a new issue