Skip to content

Commit

Permalink
Trying to install nodejs properly.
Browse files Browse the repository at this point in the history
  • Loading branch information
viferga committed Aug 22, 2024
1 parent 278a4cb commit 7db3e08
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions metacall.rb
Original file line number Diff line number Diff line change
Expand Up @@ -57,10 +57,12 @@ def install
# Set NodeJS
resource("node").stage do
build_dir.install resource("node")
bin.install build_dir/node
lib.install build_dir/libnode.127.dylib
end

# Add build folder to PATH in order to find node executable
ENV.prepend_path "PATH", build_dir
# ENV.prepend_path "PATH", build_dir

# Set the compiler
cc_compiler = `xcrun --find clang`.tr("\n","")
Expand All @@ -83,8 +85,8 @@ def install
-DOPTION_BUILD_LOADERS_PY=ON
-DOPTION_BUILD_LOADERS_NODE=ON
-DNodeJS_CMAKE_DEBUG=ON
-DNodeJS_LIBRARY=#{build_dir}/libnode.127.dylib
-DNodeJS_EXECUTABLE=#{build_dir}/node
-DNodeJS_LIBRARY=#{lib}/libnode.127.dylib
-DNodeJS_EXECUTABLE=#{bin}/node
-DNodeJS_INSTALL_PREFIX=/usr/local/Cellar/metacall/#{version}
-DOPTION_BUILD_LOADERS_JAVA=OFF
-DOPTION_BUILD_LOADERS_JS=OFF
Expand Down

0 comments on commit 7db3e08

Please sign in to comment.