[Lazarus] Where to define conditionals for FPC
Gabor Boros
mlnglsts at bgss.hu
Fri May 8 16:34:49 CEST 2020
2020. 05. 08. 14:07 keltezéssel, Bo Berglund via lazarus írta:
> I know that you can define "custom options" in Lazarus
> Project/Options/CompilerOptions/CustomOptions/Defines
>
> These can then be used in constructs like this example:
>
> {$IFDEF USE_LAZSERIAL}
> //Code pertaining to LazSerial
> {$ELSE}
> //Code pertaining to AsyncPro
> {$ENDIF}
>
> But if I do not want to use Lazarus, how do I set the conditionals I
> want to use?
Compile with "fpc ... -dUSE_LAZSERIAL".
Gabor
More information about the lazarus
mailing list