Skip to content

Commit 3b843a3

Browse files
Update cgo usage (#2184)
1 parent cd65240 commit 3b843a3

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

scripts/constants.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ fi
3232
#
3333
# We use "export" here instead of just setting a bash variable because we need
3434
# to pass this flag to all child processes spawned by the shell.
35-
export CGO_CFLAGS="-O -D__BLST_PORTABLE__"
35+
export CGO_CFLAGS="-O2 -D__BLST_PORTABLE__"
3636
# While CGO_ENABLED doesn't need to be explicitly set, it produces a much more
3737
# clear error due to the default value change in go1.20.
3838
export CGO_ENABLED=1

scripts/mock.gen.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ then
2121
go install -v github.com/palantir/go-license@v1.25.0
2222
fi
2323

24+
source ./scripts/constants.sh
25+
2426
# tuples of (source interface import path, comma-separated interface names, output file path)
2527
input="scripts/mocks.mockgen.txt"
2628
while IFS= read -r line

0 commit comments

Comments
 (0)