Skip to content

Commit

Permalink
curve:fix compiling fail in higher gcc
Browse files Browse the repository at this point in the history
Signed-off-by: Cyber-SiKu <[email protected]>
  • Loading branch information
Cyber-SiKu committed Sep 23, 2022
1 parent 2c4861c commit 86e8e1a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions .bazelrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
build:gcc7-later --cxxopt -faligned-new
4 changes: 4 additions & 0 deletions util/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,10 @@ build_target() {
fi
g_build_opts+=("--copt -DCURVEVERSION=${version}")

if [ `gcc -dumpversion | awk -F'.' '{print $1}'` -gt 6 ]; then
g_build_opts+=("--config=gcc7-later")
fi

for target in `get_target`
do
bazel build ${g_build_opts[@]} $target
Expand Down

0 comments on commit 86e8e1a

Please sign in to comment.