|
@@ -32,7 +32,7 @@ fpcdir=..
|
|
|
unexport FPC_VERSION FPC_COMPILERINFO
|
|
|
|
|
|
# Which platforms are ready for inclusion in the cycle
|
|
|
-CYCLETARGETS=i386 powerpc sparc arm x86_64 powerpc64 m68k armeb mipsel mips avr jvm i8086 aarch64 sparc64 riscv32 riscv64
|
|
|
+CYCLETARGETS=i386 powerpc sparc arm x86_64 powerpc64 m68k armeb mipsel mips avr jvm i8086 aarch64 sparc64 riscv32 riscv64 wasm
|
|
|
|
|
|
# All supported targets used for clean
|
|
|
ALLTARGETS=$(CYCLETARGETS)
|
|
@@ -225,6 +225,9 @@ endif
|
|
|
ifeq ($(CPC_TARGET),riscv64)
|
|
|
CPUSUF=rv64
|
|
|
endif
|
|
|
+ifeq ($(CPC_TARGET),wasm)
|
|
|
+CPUSUF=wasm
|
|
|
+endif
|
|
|
|
|
|
# Do not define the default -d$(CPU_TARGET) because that
|
|
|
# will conflict with our -d$(CPC_TARGET)
|
|
@@ -356,6 +359,11 @@ ifeq ($(PPC_TARGET),riscv64)
|
|
|
override LOCALOPT+=-Furiscv
|
|
|
endif
|
|
|
|
|
|
+# WASM specific
|
|
|
+ifeq ($(PPC_TARGET),wasm)
|
|
|
+override LOCALOPT+=-dNOOPT
|
|
|
+endif
|
|
|
+
|
|
|
OPTWPOCOLLECT=-OWdevirtcalls,optvmts -FW$(BASEDIR)/pp1.wpo
|
|
|
OPTWPOPERFORM=-Owdevirtcalls,optvmts -Fw$(BASEDIR)/pp1.wpo
|
|
|
# symbol liveness WPO requires nm, smart linking and no stripping (the latter
|
|
@@ -586,8 +594,8 @@ endif
|
|
|
# cpu targets
|
|
|
#####################################################################
|
|
|
|
|
|
-PPC_TARGETS=i386 m68k powerpc sparc arm armeb x86_64 powerpc64 mips mipsel avr jvm i8086 aarch64 sparc64 riscv32 riscv64
|
|
|
-PPC_SUFFIXES=386 68k ppc sparc arm armeb x64 ppc64 mips mipsel avr jvm 8086 a64 sparc64 rv32 rv64
|
|
|
+PPC_TARGETS=i386 m68k powerpc sparc arm armeb x86_64 powerpc64 mips mipsel avr jvm i8086 aarch64 sparc64 riscv32 riscv64 wasm
|
|
|
+PPC_SUFFIXES=386 68k ppc sparc arm armeb x64 ppc64 mips mipsel avr jvm 8086 a64 sparc64 rv32 rv64 wasm
|
|
|
INSTALL_TARGETS=$(addsuffix _exe_install,$(sort $(CYCLETARGETS) $(PPC_TARGETS)))
|
|
|
SYMLINKINSTALL_TARGETS=$(addsuffix _symlink_install,$(sort $(CYCLETARGETS) $(PPC_TARGETS)))
|
|
|
|