I'd like to understand the difference between defining and declaring symbols from the compiler command line. The compiler docs are not very clear on this point:
-d, --define:SYMBOL define a conditional symbol
--symbol:SYMBOL declare a conditional symbol
I didn't see any other explanation.
Also, is it possible to set the value of a symbol?
I was looking into this in the context of being able to target different processors for cross-compilation on VxWorks.
Currently the nin.cfg file only has support for compiling for the PowerPC on VxWorks. There is already a CPU parameter, but you must also select a processor variant (e.g. there are several mips processors that you could target with the VxWorks compiler). To make it possible to select a particular processor variant I had thought of doing something like "--define:PROC=ARMARCH7"... Maybe there is some better solution though...
Hi @didlybom, this question has been asked a few times on the forum recently (including by me).
You might find these past forum threads helpful:
(The forum's search function isn't great -- I tried to find my earlier post by searching for jboy conditional, and it returned zero results. But searching for just conditional at least returned the results. And searching on Google for site:forum.nim-lang.org jboy conditional returned what I was looking for.)