Disable i386 assembler code if position independent code option is used

git-svn-id: trunk@38126 -
This commit is contained in:
pierre 2018-02-06 09:41:40 +00:00
parent a29f968b3b
commit 30e4988a4e

View File

@ -55,6 +55,14 @@ unit Hermes;
{$ENDIF}
interface
{$IF defined(cpui386) and defined(FPC_PIC)}
{ FPC_PIC is only set after parsing _INTERFFACE keyword
so we need to delay the test to here }
{ the i386 assembler code is not prepared for PIC code }
{$DEFINE noassembler}
{ Thus, disable assembler code in that case for now }
{$UNDEF I386_ASSEMBLER}
{$ENDIF}
const
HERMES_CONVERT_NORMAL = 0;