File tree 2 files changed +9
-1
lines changed
2 files changed +9
-1
lines changed Original file line number Diff line number Diff line change @@ -124,7 +124,7 @@ jobs:
124
124
cabal configure --disable-documentation --enable-executable-static --enable-executable-stripping \
125
125
--extra-include-dirs="$HOME/.local/include" --extra-lib-dirs="$HOME/.local/lib" \
126
126
--extra-include-dirs="D:/a/_temp/msys64/clang64/include" --extra-lib-dirs="D:/a/_temp/msys64/clang64/lib" \
127
- --ghc-options=-pgml=D:/a/_temp/msys64/clang64/bin/clang.exe
127
+ --ghc-options=-pgml=D:/a/_temp/msys64/clang64/bin/clang.exe -fstatic-secp256k1
128
128
cabal build --dry-run
129
129
# The last step generates dist-newstyle/cache/plan.json for the cache key.
130
130
Original file line number Diff line number Diff line change @@ -25,6 +25,11 @@ extra-source-files:
25
25
extra-doc-files :
26
26
CHANGELOG.md
27
27
28
+ flag static-secp256k1
29
+ description : Sets flags for compilation with static secp256k1
30
+ default : False
31
+ manual : True
32
+
28
33
flag ci
29
34
description : Sets flags for compilation in CI
30
35
default : False
@@ -111,6 +116,9 @@ library
111
116
Paths_hevm
112
117
autogen-modules :
113
118
Paths_hevm
119
+ if os(windows) && flag(static-secp256k1)
120
+ cc-options : -DSECP256K1_STATIC
121
+ cxx-options : -DSECP256K1_STATIC
114
122
if os(darwin)
115
123
-- https://gitlab.haskell.org/ghc/ghc/-/issues/11829
116
124
ld-options : -Wl,-keep_dwarf_unwind
You can’t perform that action at this time.
0 commit comments