Skip to content

Commit

Permalink
Fix #863: using clang as the default compiler for runtime
Browse files Browse the repository at this point in the history
Currently, we use gcc for building the runtime, and clang for building
the final executable when `encorec` is invoked. However, using two
compilers is not only unnecessary but error-prone as well. 465 is another bug
related to using gcc, so let's use clang in the whole build stack from
now.
  • Loading branch information
albertnetymk authored and kikofernandez committed Apr 11, 2019
1 parent 9c57366 commit a98629f
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/runtime/pony/premake4.lua
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,11 @@ if premake.override then
end)
end

if os.execute("clang -v") == 0 then
premake.gcc.cc = 'clang'
premake.gcc.cxx = 'clang++'
end

function use_flto()
buildoptions {
"-O3",
Expand Down

0 comments on commit a98629f

Please sign in to comment.