Skip to content

Commit

Permalink
fix: build config
Browse files Browse the repository at this point in the history
  • Loading branch information
rustyconover committed Feb 9, 2025
1 parent c5127c4 commit 422d0ad
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,11 @@ string(LENGTH "${prefix_to_check}" prefix_length)
# Extract the prefix from the example_string
string(SUBSTRING "${DUCKDB_PLATFORM}" 0 ${prefix_length} extracted_platform_prefix)

execute_process(
COMMAND rustup target list --installed
OUTPUT_VARIABLE RUST_TARGETS
)

# Propagate arch to rust build for CI
set(Rust_CARGO_TARGET "")
if("${OS_NAME}" STREQUAL "linux")
Expand Down Expand Up @@ -47,10 +52,6 @@ elseif(WIN32)
endif()
endif()

execute_process(
COMMAND rustup target list --installed
OUTPUT_VARIABLE RUST_TARGETS
)
string(FIND "${RUST_TARGETS}" "wasm32-unknown-emscripten" WASM_TARGET_FOUND)

if (NOT WASM_TARGET_FOUND EQUAL -1)
Expand Down

0 comments on commit 422d0ad

Please sign in to comment.