Skip to content

Commit 8e77532

Browse files
committed
Use load simd/conf.rb
When both extconf.rb of generator and parser are run in one process, the second `require_relative` does nothing.
1 parent 68ee9cf commit 8e77532

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

ext/json/ext/generator/extconf.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
$defs << "-DJSON_DEBUG" if ENV["JSON_DEBUG"]
1010

1111
if enable_config('generator-use-simd', default=!ENV["JSON_DISABLE_SIMD"])
12-
require_relative "../simd/conf.rb"
12+
load __dir__ + "/../simd/conf.rb"
1313
end
1414

1515
create_makefile 'json/ext/generator'

ext/json/ext/parser/extconf.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
append_cflags("-std=c99")
1010

1111
if enable_config('parser-use-simd', default=!ENV["JSON_DISABLE_SIMD"])
12-
require_relative "../simd/conf.rb"
12+
load __dir__ + "/../simd/conf.rb"
1313
end
1414

1515
create_makefile 'json/ext/parser'

0 commit comments

Comments
 (0)