Sha256: ffe079b6ecac1af6d841725d9e6313c1127bc5fc68bd3632e3b6b08eb82439d1
Contents?: true
Size: 710 Bytes
Versions: 2
Compression:
Stored size: 710 Bytes
Contents
require "mkmf-rice" $CXXFLAGS += " -std=c++17 $(optflags) -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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
isotree-0.2.2 | ext/isotree/extconf.rb |
isotree-0.2.1 | ext/isotree/extconf.rb |