You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The title doesn't exactly describe what I'm looking for, hopefully this will explain better.
I have a module x.jam that configures a tool that generates code and builds it and creates a top-level target (x) that represents the output (some libraries, headers, etc.). The tool allows setting things like the compiler and compiler flags, etc.
So far, I am looking into the properties defined on the top-level target x to configure the tool, but this is not quite right. Some compiler flags are part of the gcc (for example) toolset using toolset.flags and these do not appear as properties such as <cflags>. Right now, it's not an issue but it will be in general. I also want to control the compiler used by the tool to build the libraries, but I cannot figure out how to get at it. I see it is CONFIG_COMMAND, but I cannot figure out how to attach it to x in x.jam.
I tried to follow the toolset.inherit-flags x : gcc ; as used in darwin.jam to inherit things from gcc.jam (including CONFIG_COMMAND), but I could not figure out how to make that work. My module is not a toolset, which is probably the reason, but it doesn't seem my module should be a toolset.
Does anyone have any suggestions on how to go about this? Thanks!
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
The title doesn't exactly describe what I'm looking for, hopefully this will explain better.
I have a module
x.jam
that configures a tool that generates code and builds it and creates a top-level target (x
) that represents the output (some libraries, headers, etc.). The tool allows setting things like the compiler and compiler flags, etc.So far, I am looking into the properties defined on the top-level target
x
to configure the tool, but this is not quite right. Some compiler flags are part of thegcc
(for example) toolset usingtoolset.flags
and these do not appear as properties such as<cflags>
. Right now, it's not an issue but it will be in general. I also want to control the compiler used by the tool to build the libraries, but I cannot figure out how to get at it. I see it isCONFIG_COMMAND
, but I cannot figure out how to attach it tox
inx.jam
.I tried to follow the
toolset.inherit-flags x : gcc ;
as used indarwin.jam
to inherit things fromgcc.jam
(includingCONFIG_COMMAND
), but I could not figure out how to make that work. My module is not a toolset, which is probably the reason, but it doesn't seem my module should be a toolset.Does anyone have any suggestions on how to go about this? Thanks!
Beta Was this translation helpful? Give feedback.
All reactions