Open giulianocolla opened 1 year ago
Hi, the assembler style is not set in compiler options of package
<CompilerOptions>
<Version Value="11"/>
<PathDelim Value="\"/>
<SearchPaths>
<OtherUnitFiles Value="..\source"/>
<UnitOutputDirectory Value="lib\$(TargetCPU)-$(TargetOS)"/>
</SearchPaths>
<Parsing>
<Style Value="1"/>
</Parsing>
<CodeGeneration>
<SmartLinkUnit Value="True"/>
</CodeGeneration>
</CompilerOptions>
So check in your Lazarus's default settings. I'll check later with opm.
Thanks
The field which controls what in the IDE is shown as "Assembler Style" is the field "Parsing" in the XML. Parsing Style Value =1 means Assembler Style=Intel and adds the option -RIntel. It can be fixed
Sorry, a typo. Read:
Compile of the package on recent Mac, with Apple Silicon M1 processor fails with "-RIntel unrecognized option". No wonder, because the processor is not an Intel processor! Editing the Compiler Options and changing Assembler Style to Default, it compiles and works perfectly, both with cocoa ws and with Qt5/Qt6 ws. This fix doesn't break anything for other platforms, because Assembler style is not important when you only want to install the package and not debug it.