Skip to content

Commit

Permalink
Try using clang on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
elopez committed Oct 23, 2023
1 parent c12550c commit fa3e594
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/scripts/install-libff.sh
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@ fi
if [ "$HOST_OS" = "Windows" ]; then
ARGS+=("-G" "Ninja")
sed -i 's/find_library(GMP_LIBRARY gmp)/find_library(GMP_LIBRARY NAMES libgmp.a)/' CMakeLists.txt
export CC=clang
export CXX=clang++
fi

mkdir -p build
Expand Down
5 changes: 5 additions & 0 deletions .github/scripts/install-libsecp256k1.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ curl -LO "https://github.com/bitcoin-core/secp256k1/archive/$gitRef.zip"
unzip "$gitRef.zip"
cd "secp256k1-$gitRef"

if [ "$HOST_OS" = "Windows" ]; then
export CC=clang
export CXX=clang++
fi

./autogen.sh
# hevm needs reecovery module
# enable pic so static library can link against dynamic correctly
Expand Down

0 comments on commit fa3e594

Please sign in to comment.