Skip to content

Commit

Permalink
fix vapor builder
Browse files Browse the repository at this point in the history
  • Loading branch information
tanner0101 committed Mar 23, 2016
1 parent 446877f commit 619035f
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion vapor
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,14 @@ let build: Void -> Bool = {

print("Building...")
system("mkdir -p .build")
return system("xcrun swiftc Sources/main.swift Sources/**/*.swift -I /usr/local/opt/vapor/include/ -L /usr/local/opt/vapor/lib/ -lVapor -lJay -lHummingbird -llibc -lStrand -o .build/VaporApp") == 0

#if os(Linux)
let cc = "swiftc"
#else
let cc = "xcrun swiftc"
#endif

return system("\(cc) App/main.swift App/**/*.swift -I /usr/local/opt/vapor/include/ -L /usr/local/opt/vapor/lib/ -lVapor -lJay -lHummingbird -llibc -lStrand -o .build/VaporApp") == 0
}

let run: Void -> Bool = {
Expand Down

0 comments on commit 619035f

Please sign in to comment.