Sha256: daf91abd7e197166592f6a2c7842a34dd7fbdbdae3149b2bef58764c15723311
Contents?: true
Size: 775 Bytes
Versions: 3
Compression:
Stored size: 775 Bytes
Contents
require "mkmf-rice" $CXXFLAGS += " -std=c++17 $(optflags) -D_USE_XOSHIRO -DSUPPORTS_RESTRICT=1 -D_USE_ROBIN_MAP -DDONT_THROW_ON_INTERRUPT" apple_clang = RbConfig::CONFIG["CC_VERSION_MESSAGE"] =~ /apple clang/i # check omp first if have_library("omp") || have_library("gomp") $CXXFLAGS += " -Xclang" if apple_clang $CXXFLAGS += " -fopenmp" end ext = File.expand_path(".", __dir__) isotree_src = File.expand_path("../../vendor/isotree/src", __dir__) isotree_inc = File.expand_path("../../vendor/isotree/include", __dir__) exclude = %w(c_interface.cpp Rwrapper.cpp RcppExports.cpp) $srcs = Dir["{#{ext},#{isotree_src}}/*.{cc,cpp}"].reject { |f| exclude.include?(File.basename(f)) } $INCFLAGS << " -I#{isotree_inc}" $VPATH << isotree_src create_makefile("isotree/ext")
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
isotree-0.4.0 | ext/isotree/extconf.rb |
isotree-0.3.1 | ext/isotree/extconf.rb |
isotree-0.3.0 | ext/isotree/extconf.rb |