Sha256: 780866dbfe8869aeea56bb6d2f53fdd199b37292c7aa66111eaee4e584065da9
Contents?: true
Size: 698 Bytes
Versions: 1
Compression:
Stored size: 698 Bytes
Contents
require "mkmf-rice" $CXXFLAGS += " -std=c++17 -D_USE_MERSENNE_TWISTER -D_ENABLE_CEREAL" 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 = File.expand_path("../../vendor/isotree/src", __dir__) cereal = File.expand_path("../../vendor/cereal/include", __dir__) exclude = %w(Rwrapper.cpp RcppExports.cpp) $srcs = Dir["{#{ext},#{isotree}}/*.{cc,cpp}"].reject { |f| exclude.include?(File.basename(f)) } $INCFLAGS << " -I#{isotree} -I#{cereal}" $VPATH << isotree create_makefile("isotree/ext")
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
isotree-0.2.0 | ext/isotree/extconf.rb |