Lazarus

Using the Lazarus IDE => Options => Topic started by: Wings2018 on October 08, 2018, 09:48:10 pm

Title: [SOLVED] What does 2nd dash stand for in compiler options '-b-' or '-p-'?
Post by: Wings2018 on October 08, 2018, 09:48:10 pm
In my fp.cfg I found settings like '-b-' and '-p-', but can't find in the 'user.pdf' the meaning of the 2nd dash. What does it stand for? I don't see this consistently, so is it applicable for some compiler options only? Where is this documented?
Title: Re: What does 2nd dash stand for in compiler options '-b-' or '-p-'?
Post by: Thaddy on October 08, 2018, 10:04:49 pm
In my fp.cfg I found settings like '-b-' and '-p-', but can't find in the 'user.pdf' the meaning of the 2nd dash. What does it stand for? I don't see this consistently, so is it applicable for some compiler options only? Where is this documented?
Same as off: -b means option is on, -b- means option is off. Most options also allow -b+, but its use  is more or less by convention on many OS's. So it does not need much docu,mentation, although I believe it is documented.
Code: Bash  [Select][+][-]
  1. # range checks on, explicit
  2. fpc -Cr+ hello.pas
  3. # also range checks on, implicit:
  4. fpc -Cr hello.pas
  5. # range checks off
  6. fpc -Cr- hello.pas

Edit: documented by the compiler itself:
Code: Bash  [Select][+][-]
  1. Free Pascal Compiler version 3.1.1 [2017/09/02] for x86_64  
  2. Copyright (c) 1993-2017 by Florian Klaempfl and others  
  3. /home/michael/FPC/installed/3.1.1/ppcx64 [options] <inputfile> [options]  
  4.  Put + after a boolean switch option to enable it, - to disable it.  # <<<<<---------------------
  5.  
Title: Re: What does 2nd dash stand for in compiler options '-b-' or '-p-'?
Post by: Wings2018 on October 09, 2018, 09:43:52 pm
Ok, it's clear to me. Thanks for quick response !

This topic can be closed, although I don't know how or where to do this (if you tell me I can do it next time myself  :)).
Title: Re: What does 2nd dash stand for in compiler options '-b-' or '-p-'?
Post by: lucamar on October 09, 2018, 10:16:29 pm
This topic can be closed, although I don't know how or where to do this (if you tell me I can do it next time myself  :)).

Just edit your first post and change the subject to: [SOLVED] What does 2nd dash ...
TinyPortal © 2005-2018