Skip to content

Commit 9be283b

Browse files
committed
Revert #140 in favor of #141
Revert commits: - "Pass config macros via command line" d3bcdcc - "Don't use _Atomic in C99 mode" 505c2d1
1 parent 3bacd07 commit 9be283b

1 file changed

Lines changed: 1 addition & 18 deletions

File tree

ext/digest/blake3/extconf.rb

Lines changed: 1 addition & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -82,26 +82,9 @@ def blake3_have_isa?(name, flag, snippet)
8282

8383
have_header("sys/cdefs.h")
8484

85-
checking_for("C11 atomics") do
86-
ok = try_compile(<<~C)
87-
static _Atomic int atomic_int = 0;
88-
static int t(void) {return atomic_int;}
89-
#{MAIN_DOES_NOTHING 't'}
90-
C
91-
unless ok
92-
$defs << "-DBLAKE3_ATOMICS=0"
93-
end
94-
ok
95-
end
96-
9785
$preload = %w[digest]
9886

99-
create_makefile("digest/blake3") do |mk|
100-
mk.grep(/^CPPFLAGS *=/) {|m|
101-
m.sub!(/(?=-DRUBY_EXTCONF_H)/) {[$defs, ''].join(' ')}
102-
}
103-
mk
104-
end
87+
create_makefile("digest/blake3")
10588

10689
# Emit one explicit compile rule per SIMD backend so each gets its own
10790
# instruction-set flag. mkmf's implicit .c.o rule compiles every object with

0 commit comments

Comments
 (0)