mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-27 05:13:10 +00:00
Always pass --target
to cargo test
when CMake Rust_CARGO_TARGET is set
The CMake `cargo test` integration was broken if Rust_CARGO_TARGET were used with `CARGO_FLAGS` set to `-Zbuild-std` (e.g. to target i586 under i686 without the i586 toolchain installed).
This commit is contained in:
parent
14fd7bd9af
commit
298cdb0c5b
1 changed files with 3 additions and 0 deletions
|
@ -138,6 +138,9 @@ if(DEFINED ASAN)
|
|||
message(FATAL_ERROR "ASAN requires defining the CMake variable Rust_CARGO_TARGET to the
|
||||
intended target triple")
|
||||
endif()
|
||||
endif()
|
||||
|
||||
if(DEFINED Rust_CARGO_TARGET)
|
||||
list(APPEND cargo_test_flags "--target" ${Rust_CARGO_TARGET})
|
||||
list(APPEND cargo_test_flags "--lib")
|
||||
endif()
|
||||
|
|
Loading…
Reference in a new issue