mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-11-27 15:43:20 +01:00
Disable i386 assembler code if position independent code option is used
git-svn-id: trunk@38126 -
This commit is contained in:
parent
a29f968b3b
commit
30e4988a4e
@ -55,6 +55,14 @@ unit Hermes;
|
|||||||
{$ENDIF}
|
{$ENDIF}
|
||||||
|
|
||||||
interface
|
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
|
const
|
||||||
HERMES_CONVERT_NORMAL = 0;
|
HERMES_CONVERT_NORMAL = 0;
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user