Skip to content

Commit

Permalink
Set FPU type in compiler options
Browse files Browse the repository at this point in the history
  • Loading branch information
ollydev committed Jul 13, 2023
1 parent 63bb009 commit b88345e
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 10 deletions.
15 changes: 10 additions & 5 deletions Source/Simba.lpi
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,8 @@
<LinkSmart Value="True"/>
</Linking>
<Other>
<CustomOptions Value="-dStaticFFI
<CustomOptions Value="-CfSSE3
-dStaticFFI
-dLape_CDECL"/>
<CreateMakefileOnBuild Value="True"/>
</Other>
Expand Down Expand Up @@ -100,7 +101,8 @@
<LinkSmart Value="True"/>
</Linking>
<Other>
<CustomOptions Value="-dStaticFFI
<CustomOptions Value="-CfSSE64
-dStaticFFI
-dLape_CDECL"/>
<OtherDefines Count="2">
<Define0 Value="StaticFFI"/>
Expand Down Expand Up @@ -146,7 +148,8 @@
<CompilerMessages>
<IgnoredMessages idx5024="True" idx4105="True" idx4104="True" idx4055="True" idx2054="True"/>
</CompilerMessages>
<CustomOptions Value="-dLape_CDECL"/>
<CustomOptions Value="-CfSSE64
-dLape_CDECL"/>
<CreateMakefileOnBuild Value="True"/>
</Other>
</CompilerOptions>
Expand Down Expand Up @@ -228,7 +231,8 @@
<CompilerMessages>
<IgnoredMessages idx5024="True" idx4105="True" idx4104="True" idx4055="True" idx2054="True"/>
</CompilerMessages>
<CustomOptions Value="-dLape_CDECL"/>
<CustomOptions Value="-CfSSE64
-dLape_CDECL"/>
<ExecuteAfter>
<Command Value="macosbundle/make.sh"/>
<ShowAllMessages Value="True"/>
Expand Down Expand Up @@ -941,7 +945,8 @@
<CompilerMessages>
<IgnoredMessages idx5024="True" idx4105="True" idx4104="True" idx4055="True" idx2054="True"/>
</CompilerMessages>
<CustomOptions Value="-dStaticFFI
<CustomOptions Value="-CfSSE64
-dStaticFFI
-dLape_CDECL"/>
<OtherDefines Count="2">
<Define0 Value="StaticFFI"/>
Expand Down
11 changes: 6 additions & 5 deletions Source/simba.inc
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,12 @@
{$ENDIF}
{$ENDIF}

{$IF Defined(CPU386)}
{$FPUTYPE SSE3}
{$ELSEIF Defined(CPUX86_64)}
{$FPUTYPE SSE64}
{$ENDIF}
// Set in project options > custom options.. "-CfSSE"
//{$IF Defined(CPU386)}
// {$FPUTYPE SSE3}
//{$ELSEIF Defined(CPUX86_64)}
// {$FPUTYPE SSE64}
//{$ENDIF}

{$MODESWITCH ADVANCEDRECORDS}
{$MODESWITCH TYPEHELPERS}
Expand Down

0 comments on commit b88345e

Please sign in to comment.