Skip to content

Commit

Permalink
Merge pull request #1224 from amitch1999/master
Browse files Browse the repository at this point in the history
Fix mayberelsrcdir after gcc folder name change
  • Loading branch information
kito-cheng authored Apr 17, 2023
2 parents 170a9a3 + 80437b7 commit 29da22c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@ DEJAGNU_SRCDIR := @with_dejagnu_src@

SIM ?= @WITH_SIM@

ifeq ($(srcdir)/riscv-gcc,$(GCC_SRCDIR))
ifeq ($(srcdir)/gcc,$(GCC_SRCDIR))
# We need a relative source dir for the gcc configure, to make msys2 mingw64
# builds work. Mayberelsrcdir is relative if a relative path was used to run
# configure, otherwise absolute, so we have to check.
mayberelsrcdir := @top_srcdir@
gccsrcdir := $(shell case $(mayberelsrcdir) in \
([\\/]* | ?:[\\/]*) echo $(mayberelsrcdir)/riscv-gcc ;; \
(*) echo ../$(mayberelsrcdir)/riscv-gcc ;; \
([\\/]* | ?:[\\/]*) echo $(mayberelsrcdir)/gcc ;; \
(*) echo ../$(mayberelsrcdir)/gcc ;; \
esac)
else
gccsrcdir := $(abspath $(GCC_SRCDIR))
Expand Down

0 comments on commit 29da22c

Please sign in to comment.