Skip to content

Commit

Permalink
cmake/FindRust.cmake: inherit RUSTFLAGS from the environment
Browse files Browse the repository at this point in the history
  • Loading branch information
liushuyu committed Jul 3, 2024
1 parent 1d30588 commit 664fe8f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cmake/FindRust.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -486,7 +486,7 @@ elseif(${CMAKE_BUILD_TYPE} STREQUAL "RelWithDebInfo")
else()
set(CARGO_BUILD_TYPE "debug")
endif()
string(STRIP "${RUSTFLAGS}" RUSTFLAGS)
string(STRIP "${RUSTFLAGS} $ENV{RUSTFLAGS}" RUSTFLAGS)

find_package_handle_standard_args(Rust
REQUIRED_VARS cargo_EXECUTABLE
Expand Down

0 comments on commit 664fe8f

Please sign in to comment.