summaryrefslogtreecommitdiff
path: root/ext/lazar/extconf.rb
diff options
context:
space:
mode:
Diffstat (limited to 'ext/lazar/extconf.rb')
-rw-r--r--ext/lazar/extconf.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/lazar/extconf.rb b/ext/lazar/extconf.rb
index f466afb..edb960a 100644
--- a/ext/lazar/extconf.rb
+++ b/ext/lazar/extconf.rb
@@ -17,7 +17,7 @@ lib_dir = File.join openbabel_dir, "lib", "openbabel"
ruby_src_dir = File.join src_dir, "scripts", "ruby"
begin
- nr_processors = `grep processor /proc/cpuinfo | wc -l` # speed up compilation, Linux only
+ nr_processors = `getconf _NPROCESSORS_ONLN`.to_i # should be POSIX compatible
rescue
nr_processors = 1
end