Skip to content

Commit 664fe8f

Browse files
committed
cmake/FindRust.cmake: inherit RUSTFLAGS from the environment
1 parent 1d30588 commit 664fe8f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

cmake/FindRust.cmake

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -486,7 +486,7 @@ elseif(${CMAKE_BUILD_TYPE} STREQUAL "RelWithDebInfo")
486486
else()
487487
set(CARGO_BUILD_TYPE "debug")
488488
endif()
489-
string(STRIP "${RUSTFLAGS}" RUSTFLAGS)
489+
string(STRIP "${RUSTFLAGS} $ENV{RUSTFLAGS}" RUSTFLAGS)
490490

491491
find_package_handle_standard_args(Rust
492492
REQUIRED_VARS cargo_EXECUTABLE

0 commit comments

Comments
 (0)