Recent

Author Topic: fp.cfg fpc.cfg  (Read 6507 times)

skiy1337lazarus

  • New Member
  • *
  • Posts: 34
fp.cfg fpc.cfg
« on: October 07, 2015, 05:18:40 pm »
If I add this to Addition Compiler Arguments:
@/path/to/fpc.cfg

Will that mean that "fp.cfg"  FP.cfg is ignored ?

I spent years learning fpc.cfg, and I have a program which writes it out for me... Don't want to throw that away...

Leledumbo

  • Hero Member
  • *****
  • Posts: 8746
  • Programming + Glam Metal + Tae Kwon Do = Me
Re: fp.cfg fpc.cfg
« Reply #1 on: October 08, 2015, 04:53:11 am »
http://www.freepascal.org/docs-html/user/userse17.html:
Quote
When the compiler has finished reading the configuration file, it continues to treat the command line options.
One of the command line options allows you to specify a second configuration file: Specifying @foo on the command line will open file foo, and read further options from there. When the compiler has finished reading this file, it continues to process the command line.
Do you need a conclusion?

molly

  • Hero Member
  • *****
  • Posts: 2330
Re: fp.cfg fpc.cfg
« Reply #2 on: October 08, 2015, 07:47:03 am »
fp.cfg is used only by FP-IDE.

No idea why you want to override its configuration file with fpc.cfg, because the FP-IDE offers you the possibility to customize its settings within the configuration options. You can add your own (additional) rules if you dislike current settings. Only realize that it keeps settings for different kind of releases (debug, normal and release), but you can add your custom rules to each one of them.

I didn't even know (so i doubt) it is possible to overrule the settings of FP-IDE which uses its own internal compiler. Because i doubt, i should really check that to make sure ...

skiy1337lazarus

  • New Member
  • *
  • Posts: 34
Re: fp.cfg fpc.cfg
« Reply #3 on: October 08, 2015, 10:11:59 am »
You will like this:
type \path\to\fpc.cfg > fp.cfg
attrib +r fp.cfg

And everything works...

attrib +r Sets read-only attribute.

 

TinyPortal © 2005-2018