Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Replace hardcoded system ruby path #5

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -128,4 +128,4 @@ ENDFOREACH(lib_path)
# Generate nullarihyon command ruby script
set (INSTALL_LIBEXEC_PREFIX ${CMAKE_INSTALL_PREFIX}/libexec/nullarihyon/${NULL_VERSION})
set (INSTALL_LIB_PREFIX ${CMAKE_INSTALL_PREFIX}/lib/nullarihyon/${NULL_VERSION})
install(CODE "execute_process(COMMAND /usr/bin/ruby ${PROJECT_SOURCE_DIR}/frontend/bin/make_frontend.rb ${CMAKE_INSTALL_PREFIX}/bin ${INSTALL_LIBEXEC_PREFIX}/nullarihyon-core ${INSTALL_LIB_PREFIX}/clang ${INSTALL_LIB_PREFIX}/frontend ${NULL_VERSION})")
install(CODE "execute_process(COMMAND ruby ${PROJECT_SOURCE_DIR}/frontend/bin/make_frontend.rb ${CMAKE_INSTALL_PREFIX}/bin ${INSTALL_LIBEXEC_PREFIX}/nullarihyon-core ${INSTALL_LIB_PREFIX}/clang ${INSTALL_LIB_PREFIX}/frontend ${NULL_VERSION})")
2 changes: 1 addition & 1 deletion frontend/bin/frontend_command.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,4 @@

dir_path = Pathname(__dir__).realpath

puts "/usr/bin/ruby -I#{dir_path.parent + "lib"}:#{dir_path.parent + "bundle"} #{dir_path + "frontend.rb"} xcode --analyzer=#{$analyzer_path} --resource-dir=#{$resource_dir_path}"
puts "ruby -I#{dir_path.parent + "lib"}:#{dir_path.parent + "bundle"} #{dir_path + "frontend.rb"} xcode --analyzer=#{$analyzer_path} --resource-dir=#{$resource_dir_path}"
1 change: 0 additions & 1 deletion frontend/bin/make_frontend.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@

bin_path.open("w") do |io|
io.puts <<EOS
#!/usr/bin/ruby

$ANALYZER_PATH = "#{analyzer_path}"
$RESOURCE_DIR_PATH = "#{resource_dir_path}"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
shellScript = "/usr/bin/ruby -I ../../../lib:../../../bundle ../../../bin/frontend.rb xcode --analyzer=../../../../build/driver/Debug/nullarihyon-core --resource-dir=../../../../vendor/clang+llvm-3.8.0-x86_64-apple-darwin/lib/clang/3.8.0/";
shellScript = "ruby -I ../../../lib:../../../bundle ../../../bin/frontend.rb xcode --analyzer=../../../../build/driver/Debug/nullarihyon-core --resource-dir=../../../../vendor/clang+llvm-3.8.0-x86_64-apple-darwin/lib/clang/3.8.0/";
};
EA4578735016695D8B9B15B8 /* 📦 Check Pods Manifest.lock */ = {
isa = PBXShellScriptBuildPhase;
Expand Down