Skip to content

Commit

Permalink
Use clang17 for FreeBSD
Browse files Browse the repository at this point in the history
  • Loading branch information
junderw committed Oct 15, 2024
1 parent 055aba1 commit 0f31f88
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion start
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,10 @@ case "$(uname -s)" in
FreeBSD)
OS=FreeBSD
NPROC=$(sysctl -n hw.ncpu)
EXTRA_CARGO_ARGS='CC=/usr/local/bin/clang17
CXX=/usr/local/bin/clang++17
CPP=/usr/local/bin/clang-cpp17
RUSTFLAGS="-C linker=clang17"'
;;
Darwin)
OS=Darwin
Expand Down Expand Up @@ -142,7 +146,7 @@ do
sort "${POPULAR_SCRIPTS_FILE_RAW}" | uniq > "${POPULAR_SCRIPTS_FILE}"

# Run the electrs process (Note: db-dir is used in both commands)
cargo run \
${EXTRA_CARGO_ARGS} cargo run \
--release \
--bin electrs \
--features "${FEATURES}" \
Expand Down

0 comments on commit 0f31f88

Please sign in to comment.