mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-04-08 02:07:53 +02:00
Adding common directory for riscv32/64 and -dNOOPT for wasm32
This commit is contained in:
parent
751417b685
commit
2d1e420e54
@ -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
|
||||
|
@ -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]
|
||||
|
Loading…
Reference in New Issue
Block a user