Skip to content
This repository has been archived by the owner on Jun 16, 2024. It is now read-only.

Commit

Permalink
CxxsimTask: write compile command db out before running.
Browse files Browse the repository at this point in the history
  • Loading branch information
kivikakk committed May 17, 2024
1 parent f21ce69 commit 1419fbe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/scala/ee/hrzn/chryse/tasks/CxxsimTask.scala
Original file line number Diff line number Diff line change
Expand Up @@ -114,8 +114,6 @@ object CxxsimTask extends BaseTask {
cmd = compileCmdForCc(cc, obj)
} yield CompilationUnit(Some(cc), headers, obj, cmd)

runCus("compilation", cus)

val cwd = System.getProperty("user.dir")
writePath(s"$buildDir/compile_commands.json") { wr =>
upickle.default.writeTo(
Expand All @@ -124,6 +122,8 @@ object CxxsimTask extends BaseTask {
)
}

runCus("compilation", cus)

val binPath = s"$buildDir/$name"
val linkCu = CompilationUnit(
None,
Expand Down

0 comments on commit 1419fbe

Please sign in to comment.