Lazarus

Free Pascal => General => Topic started by: 440bx on January 24, 2020, 07:23:02 pm

Title: Is there a syntax checking option only ?
Post by: 440bx on January 24, 2020, 07:23:02 pm
Hello,

I'd like FPC to only do a syntax check on some source files (full parse but, no code generation.)  I didn't see a command line option that would tell FPC to only do syntax checking and, I'm wondering if I missed it or if the option doesn't exist.

That's my question: is there a command line switch that instructs FPC to do syntax checking only ?

Thank you for your help.
Title: Re: Is there a syntax checking option only ?
Post by: Jonas Maebe on January 24, 2020, 07:36:40 pm
There is no such option.
Title: Re: Is there a syntax checking option only ?
Post by: 440bx on January 24, 2020, 07:59:30 pm
There is no such option.
Thank you Jonas.
Title: Re: Is there a syntax checking option only ?
Post by: bee on January 25, 2020, 02:40:18 am
I usually use -s to achieve such purpose. The option doesn't do syntax check but makes FPC does not call assembler and linker which is pretty much what syntax check does.
Title: Re: Is there a syntax checking option only ?
Post by: 440bx on January 25, 2020, 07:35:37 am
I usually use -s to achieve such purpose. The option doesn't do syntax check but makes FPC does not call assembler and linker which is pretty much what syntax check does.
Good suggestion, thank you.
TinyPortal © 2005-2018