Sha256: d46f767b5ce96d96fe1a125adecfed5ce52a8095abc4f8185db5be44e235a37b
Contents?: true
Size: 631 Bytes
Versions: 4
Compression:
Stored size: 631 Bytes
Contents
require "mkmf-rice" # TODO add -D_ENABLE_CEREAL $CXXFLAGS += " -std=c++11 -D_USE_MERSENNE_TWISTER" 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__) exclude = %w(Rwrapper.cpp RcppExports.cpp) $srcs = Dir["{#{ext},#{isotree}}/*.{cc,cpp}"].reject { |f| exclude.include?(File.basename(f)) } $INCFLAGS << " -I#{isotree}" $VPATH << isotree create_makefile("isotree/ext")
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
isotree-0.1.4 | ext/isotree/extconf.rb |
isotree-0.1.3 | ext/isotree/extconf.rb |
isotree-0.1.2 | ext/isotree/extconf.rb |
isotree-0.1.1 | ext/isotree/extconf.rb |