Skip to content

Commit

Permalink
Revert "[GCC]: Fix fence.i bug (#296)"
Browse files Browse the repository at this point in the history
This reverts commit 54de960.

See #298 for explanation.
  • Loading branch information
aswaterman committed May 16, 2023
1 parent 54de960 commit acbe166
Showing 1 changed file with 4 additions and 15 deletions.
19 changes: 4 additions & 15 deletions Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -57,27 +57,16 @@ endif
# *** If --with-abi is given but --with-arch is not, then the ISA uses the
# compiler's default.


ifneq (@WITH_ARCH@,)
is_32bit := $(findstring 32,@WITH_ARCH@)
else
ifneq (@host_alias@,)
is_32bit := $(findstring 32,@host_alias@)
else
is_32bit := ""
endif
endif

ifneq (@WITH_ARCH@,)
march := -march=@WITH_ARCH@
else
march := -march=$(if $(is_32bit),rv32,rv64)im_zicsr_zifencei
is_32bit := $(findstring 32,$(march))
ifeq (@WITH_ABI@,)
mabi := -mabi=$(if $(is_32bit),ilp32,lp64)
endif
endif

ifneq (@WITH_ABI@,)
mabi := -mabi=@WITH_ABI@
else
mabi := -mabi=$(if $(is_32bit),ilp32,lp64)
endif

# Installation directories
Expand Down

0 comments on commit acbe166

Please sign in to comment.