mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-15 21:09:27 +02:00
Add wasm32 CPU handling in embedded target
This commit is contained in:
parent
b02b3b79b4
commit
1c9280de56
@ -530,6 +530,9 @@ ifeq ($(CPU_UNITS_DEFINED),)
|
|||||||
$(error No CPUs enabled for given SUBARCH, pass either a SUBARCH or set CPU_UNITS_DEFINED=1 if you know what you are doing)
|
$(error No CPUs enabled for given SUBARCH, pass either a SUBARCH or set CPU_UNITS_DEFINED=1 if you know what you are doing)
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
ifeq ($(ARCH),wasm32)
|
||||||
|
CPU_SPECIFIC_COMMON_UNITS=sysutils math classes fgl macpas typinfo types rtlconsts getopts
|
||||||
|
endif
|
||||||
OBJPASDIR=$(RTL)/objpas
|
OBJPASDIR=$(RTL)/objpas
|
||||||
GRAPHDIR=$(INC)/graph
|
GRAPHDIR=$(INC)/graph
|
||||||
ifeq ($(FULL_TARGET),i386-linux)
|
ifeq ($(FULL_TARGET),i386-linux)
|
||||||
|
@ -238,6 +238,11 @@ $(error No CPUs enabled for given SUBARCH, pass either a SUBARCH or set CPU_UNIT
|
|||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
|
ifeq ($(ARCH),wasm32)
|
||||||
|
CPU_SPECIFIC_COMMON_UNITS=sysutils math classes fgl macpas typinfo types rtlconsts getopts
|
||||||
|
# lineinfo
|
||||||
|
endif
|
||||||
|
|
||||||
# Paths
|
# Paths
|
||||||
OBJPASDIR=$(RTL)/objpas
|
OBJPASDIR=$(RTL)/objpas
|
||||||
GRAPHDIR=$(INC)/graph
|
GRAPHDIR=$(INC)/graph
|
||||||
|
@ -274,3 +274,20 @@
|
|||||||
-SfRTTI
|
-SfRTTI
|
||||||
-SfSOFTFPU
|
-SfSOFTFPU
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
# wasm32 is powerful enough to handle most object pascal constructs
|
||||||
|
# it is only a matter of size, it does not need softfpu
|
||||||
|
#ifdef CPUWASM32
|
||||||
|
-SfCLASSES
|
||||||
|
-SfEXCEPTIONS
|
||||||
|
-SfANSISTRINGS
|
||||||
|
-SfRTTI
|
||||||
|
-SfWIDESTRINGS
|
||||||
|
-SfDYNARRAYS
|
||||||
|
-SfTHREADING
|
||||||
|
-SfVARIANTS
|
||||||
|
-SfOBJECTS
|
||||||
|
-SfCOMMANDARGS
|
||||||
|
-SfRANDOM
|
||||||
|
-SfRESOURCES
|
||||||
|
#endif CPUWASM32
|
||||||
|
Loading…
Reference in New Issue
Block a user