Skip to content

Commit

Permalink
Merge pull request #1301 from liushuyu/respect-build-flags
Browse files Browse the repository at this point in the history
cmake/FindRust.cmake: inherit RUSTFLAGS from the environment
  • Loading branch information
val-ms authored Jul 23, 2024
2 parents 8f914a0 + bef8451 commit 2a5241a
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 @@ -488,7 +488,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 2a5241a

Please sign in to comment.