Skip to content
This repository was archived by the owner on Mar 15, 2022. It is now read-only.

Commit 9bea887

Browse files
committed
Remove now-unneeded test for GCC CAS from extconf.rb
Previously, there was a preprocessor conditional directive in atomic_reference.c which checked for HAVE_GCC_CAS. It's gone now. So there is no reason to waste time while compiling.
1 parent 3cd3b43 commit 9bea887

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

ext/extconf.rb

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,4 @@ def compiler_is_gcc
3737
end
3838
end
3939

40-
try_run(<<CODE,$CFLAGS) && ($defs << '-DHAVE_GCC_CAS')
41-
int main() {
42-
int i = 1;
43-
__sync_bool_compare_and_swap(&i, 1, 4);
44-
return (i != 4);
45-
}
46-
CODE
47-
4840
create_makefile(extension_name)

0 commit comments

Comments
 (0)