diff options
author | Andrew Waterman <andrew@sifive.com> | 2023-05-16 13:46:48 -0700 |
---|---|---|
committer | Andrew Waterman <andrew@sifive.com> | 2023-05-16 13:46:54 -0700 |
commit | acbe166dac9d1db752ee95f61e65ca82bb875afb (patch) | |
tree | 958237e7aae1d820e20e3f739bb4fb4d1b900b7c /Makefile.in | |
parent | 54de960a5e4c91734fcfd454fdc7e593c6ac571d (diff) | |
download | pk-acbe166dac9d1db752ee95f61e65ca82bb875afb.zip pk-acbe166dac9d1db752ee95f61e65ca82bb875afb.tar.gz pk-acbe166dac9d1db752ee95f61e65ca82bb875afb.tar.bz2 |
Revert "[GCC]: Fix fence.i bug (#296)"
This reverts commit 54de960a5e4c91734fcfd454fdc7e593c6ac571d.
See #298 for explanation.
Diffstat (limited to 'Makefile.in')
-rw-r--r-- | Makefile.in | 19 |
1 files changed, 4 insertions, 15 deletions
diff --git a/Makefile.in b/Makefile.in index cdb6007..05e3a4d 100644 --- a/Makefile.in +++ b/Makefile.in @@ -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 |