Adding common directory for riscv32/64 and -dNOOPT for wasm32

This commit is contained in:
Pierre Muller 2022-02-11 22:18:27 +00:00
parent 751417b685
commit 2d1e420e54
2 changed files with 24 additions and 1 deletions

View File

@ -388,6 +388,15 @@ endif
ifeq ($(PPC_TARGET),sparc64)
override FPCOPT+= -Fu$(COMPILERDIR)/sparcgen -Fi$(COMPILERDIR)/sparcgen
endif
ifeq ($(PPC_TARGET),wasm32)
override FPCOPT+= -dNOOPT
endif
ifeq ($(PPC_TARGET),riscv32)
override LOCALOPT+=-Furiscv
endif
ifeq ($(PPC_TARGET),riscv64)
override LOCALOPT+=-Furiscv
endif
ifeq ($(FULL_TARGET),i386-linux)
override TARGET_UNITS+=compunit
endif
@ -3787,7 +3796,7 @@ ifdef CREATESHARED
override FPCOPT+=-Cg
endif
ifneq ($(filter $(OS_TARGET),dragonfly freebsd openbsd netbsd linux solaris),)
ifneq ($(filter $(CPU_TARGET),x86_64 mips mipsel riscv64 powerpc64),)
ifneq ($(filter $(CPU_TARGET),x86_64 mips mipsel mips64 mips64el riscv64 powerpc64),)
override FPCOPT+=-Cg
endif
endif

View File

@ -75,6 +75,20 @@ endif
ifeq ($(PPC_TARGET),sparc64)
override FPCOPT+= -Fu$(COMPILERDIR)/sparcgen -Fi$(COMPILERDIR)/sparcgen
endif
# wasm32 specific
ifeq ($(PPC_TARGET),wasm32)
override FPCOPT+= -dNOOPT
endif
# RiscV32 specific
ifeq ($(PPC_TARGET),riscv32)
override LOCALOPT+=-Furiscv
endif
# RiscV64 specific
ifeq ($(PPC_TARGET),riscv64)
override LOCALOPT+=-Furiscv
endif
[rules]