Top Level Namespace

Defined Under Namespace

Modules: Pyroscope

Constant Summary collapse

LIBDIR =
RbConfig::CONFIG['libdir']
INCLUDEDIR =
RbConfig::CONFIG['includedir']
HEADER_DIRS =
[INCLUDEDIR]
LIB_DIRS =
[LIBDIR, File.expand_path(File.join(File.dirname(__FILE__), "lib"))]
COMMIT =
"df45c48"
OS =

TODO: this is not very accurate, but it works for now

RUBY_PLATFORM.include?("darwin") ? "mac" : "linux"
ARCH =
RUBY_PLATFORM.include?("arm64") ? "arm64" : "amd64"
PREFIX =
"/static-libs/#{COMMIT}/#{OS}-#{ARCH}"
ROOT =
File.expand_path("..", __FILE__)

Instance Method Summary collapse

Instance Method Details

#run(str) ⇒ Object



22
23
24
# File 'ext/pyroscope/extconf.rb', line 22

def run(str)
  system(str) || fail("command failed: #{str}")
end