Top Level Namespace

Defined Under Namespace

Modules: Iodine

Instance Method Summary collapse

Instance Method Details

#check_for_stdatomicsObject



3
4
5
6
7
# File 'ext/iodine/extconf.rb', line 3

def check_for_stdatomics
  RbConfig::MAKEFILE_CONFIG['CC'] = $CC = ENV['CC'] if ENV['CC']
  RbConfig::MAKEFILE_CONFIG['CPP'] = $CPP = ENV['CPP'] if ENV['CPP']
  puts 'Missing support for atomic operations (support for C11) - is your compiler updated?' unless have_header('stdatomic.h')
end