Skip to content

Commit

Permalink
Rearrange order of LLVM flags to make them more readable
Browse files Browse the repository at this point in the history
  • Loading branch information
WojciechMazur committed Jun 2, 2021
1 parent 8ee0cb2 commit a6115f4
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions tools/src/main/scala/scala/scalanative/build/LLVM.scala
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,8 @@ private[scalanative] object LLVM {
if (config.targetsWindows) Seq("-g")
else Nil
}
val flags =
opt(config) +: stdflag ++: platformFlags ++: "-fvisibility=hidden" +:
config.compileOptions
val flags = opt(config) +: "-fvisibility=hidden" +:
stdflag ++: platformFlags ++: config.compileOptions
val compilec =
Seq(compiler) ++ flto(config) ++ flags ++ target(config) ++
Seq("-c", inpath, "-o", outpath)
Expand Down

0 comments on commit a6115f4

Please sign in to comment.