|
@@ -241,6 +241,19 @@ endif
|
|
|
# set correct defines (-d$(CPU_TARGET) is automatically added in makefile.fpc)
|
|
|
override LOCALOPT+=-d$(CPC_TARGET) -dGDB -dBROWSERLOG
|
|
|
|
|
|
+#include LLVM define/directory if requested
|
|
|
+ifdef LLVM
|
|
|
+ifeq ($(findstring $(PPC_TARGET),x86_64),)
|
|
|
+$(error The $(PPC_TARGET) architecture is not (yet) support by the FPC/LLVM code generator)
|
|
|
+endif
|
|
|
+
|
|
|
+ifeq ($(findstring $(OS_TARGET),darwin iphonesim linux),)
|
|
|
+$(error The $(PPC_TARGET) target OS is not (yet) support by the FPC/LLVM code generator)
|
|
|
+endif
|
|
|
+
|
|
|
+override LOCALOPT+=-dllvm -Fullvm
|
|
|
+endif
|
|
|
+
|
|
|
# i386 specific
|
|
|
ifeq ($(PPC_TARGET),i386)
|
|
|
override LOCALOPT+=-Fux86
|