Skip to content

Commit

Permalink
Fixed M1 compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
orlando-labs authored and johanns committed Sep 23, 2021
1 parent df8a011 commit ef08fd3
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion ext/sha3/extconf.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,5 +17,10 @@
find_header("sha3.h")
find_header("digest.h")

$CFLAGS = ' -fomit-frame-pointer -O3 -g0 -march=native '
$CFLAGS = ' -fomit-frame-pointer -O3 -g0'

if enable_config('march-tune-native', false)
$CFLAGS += ' -march=native'
end

create_makefile 'sha3_n'

0 comments on commit ef08fd3

Please sign in to comment.