Skip to content

Commit

Permalink
Remove parent's DEJAGNU environment variable
Browse files Browse the repository at this point in the history
`make report` / `make check` on riscv-gnu-toolchain depends on the
default installation of DejaGnu's `riscv-sim.exp`.  If an user overrides
the DejaGnu environment with `riscv-sim.exp`, many tricks used in
the testing framework in riscv-gnu-toolchain stops working.

So, this commit removes parent's `DEJAGNU` environment variable by
`unexport`ing it.
  • Loading branch information
a4lg committed Nov 28, 2023
1 parent b905f4b commit d4f4899
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ endif

export PATH AWK SED

# "make report" depends on the default installation of riscv-sim.exp.
unexport DEJAGNU

MULTILIB_FLAGS := @multilib_flags@
MULTILIB_GEN := @multilib_gen@
ifeq ($(MULTILIB_GEN),)
Expand Down

0 comments on commit d4f4899

Please sign in to comment.