Skip to content

Commit

Permalink
* Add short comment about required disable-phasar flag
Browse files Browse the repository at this point in the history
* Add disable-phasar flag to recompile
  • Loading branch information
Lukas Abelt committed Sep 5, 2023
1 parent 7cfc8f0 commit 059fb8c
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions varats/varats/projects/cpp_projects/dune.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,9 @@ def binaries_for_revision(
def compile(self) -> None:
"""Compile the project using the in-built tooling from dune."""
version_source = local.path(self.source_of(self.primary_source))

# Currently Phasar passes crash the compiler
# This limits us to analysing compile time variability
self.cflags += ["-mllvm", "--vara-disable-phasar"]

c_compiler = bb.compiler.cc(self)
Expand All @@ -178,6 +181,11 @@ def compile(self) -> None:
def recompile(self) -> None:
"""Recompiles Dune after e.g. a Patch has been applied."""
version_source = local.path(self.source_of(self.primary_source))

# Currently Phasar passes crash the compiler
# This limits us to analysing compile time variability
self.cflags += ["-mllvm", "--vara-disable-phasar"]

with local.env(CC=bb.compiler.cc(self), CXX=bb.compiler.cxx(self)):
with local.cwd(version_source):
dunecontrol = cmd['./dune-common/bin/dunecontrol']
Expand Down

0 comments on commit 059fb8c

Please sign in to comment.