mirror of
https://github.com/thoughtbot/capybara-webkit
synced 2023-03-27 23:22:28 -04:00
Fix: issue #34, compiling on Arch linux
This commit is contained in:
parent
0a075704ee
commit
304de8804d
1 changed files with 6 additions and 1 deletions
|
@ -6,7 +6,12 @@ module CapybaraWebkitBuilder
|
|||
def makefile
|
||||
qmake_binaries = ['qmake', 'qmake-qt4']
|
||||
qmake = qmake_binaries.detect { |qmake| system("which #{qmake}") }
|
||||
system("#{qmake} -spec macx-g++")
|
||||
case RUBY_PLATFORM
|
||||
when /linux/
|
||||
system("#{qmake} -spec linux-g++")
|
||||
else
|
||||
system("#{qmake} -spec macx-g++")
|
||||
end
|
||||
end
|
||||
|
||||
def qmake
|
||||
|
|
Loading…
Add table
Reference in a new issue