ext/hamlit/extconf.rb in hamlit-2.4.0 vs ext/hamlit/extconf.rb in hamlit-2.4.1

- old
+ new

@@ -5,15 +5,13 @@ $CFLAGS << ' -Wall -Wextra' $srcs = %w[hamlit.c] Dir[File.join(houdini_dir, '*.c')].each do |path| src = File.basename(path) - begin - FileUtils.ln_s(path, src, force: true) - rescue NotImplementedError - # For the error on windows: - # symlink() function is unimplemented on this machine (NotImplementedError) + if /mswin|mingw/ =~ RUBY_PLATFORM FileUtils.cp(path, src) + else + FileUtils.ln_s(path, src, force: true) end $srcs << src end create_makefile('hamlit/hamlit')