Skip to content

Commit

Permalink
fix build by using sudo $(xmake)
Browse files Browse the repository at this point in the history
  • Loading branch information
ruihe774 committed May 23, 2017
1 parent 89e2cc7 commit 962b99c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions tests/build.lua
Original file line number Diff line number Diff line change
Expand Up @@ -22,14 +22,14 @@ function main(argv)
os.exec("xmake f --cc=gcc --cxx=g++")
os.exec("xmake m buildtest")
if os.host() ~= "windows" then
os.exec("sudo xmake install")
os.exec("sudo xmake uninstall")
os.exec("sudo \"$(xmake)\" install")
os.exec("sudo \"$(xmake)\" uninstall")
end
os.exec("xmake f --cc=clang --cxx=clang++ --ld=clang++ --verbose --backtrace")
os.exec("xmake m buildtest")
if os.host() ~= "windows" then
os.exec("sudo xmake install --all -v --backtrace")
os.exec("sudo xmake uninstall -v --backtrace")
os.exec("sudo \"$(xmake)\" install --all -v --backtrace")
os.exec("sudo \"$(xmake)\" uninstall -v --backtrace")
end
os.exec("xmake m -d buildtest")

Expand Down

0 comments on commit 962b99c

Please sign in to comment.