Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community Forumscorrect way to set profile for executable
https://www.eclipse.org/forums/index.php/mv/msg/509/1272/#msg_1272
What is the correct way to set the profile for an executable? I have seen
two different ways, one using cfgArgs (see 1 below) and the other using
profile (see 2 below). I do not see option 1 clearly explained in http://rtsc.eclipse.org/cdoc-tip/index.html#xdc/bld/Library. html#.Attrs
but it occurs in examples.
Katie]]>Katie Roberts-Hoffman2009-02-20T20:58:43-00:00Re: correct way to set profile for executable
https://www.eclipse.org/forums/index.php/mv/msg/509/1494/#msg_1494
> Hello,
>
> What is the correct way to set the profile for an executable? I have
> seen two different ways, one using cfgArgs (see 1 below) and the other
> using profile (see 2 below). I do not see option 1 clearly explained in
> http://rtsc.eclipse.org/cdoc-tip/index.html#xdc/bld/Library. html#.Attrs
> but it occurs in examples.
>
>
> Pkg.addExecutable( serverName, targ, targ.platform,
> {
> tcopts: "-Dxdc.cfg.check.fatal=false",
> cfgScript: "server.tcf",
> ---> (1) cfgArgs: '{profile: "' + arguments[0] + '"}',
> ---> (2) profile: arguments[0],
> lopts: "-l link.cmd",
> }).
> addObjects( [
> "main.c",
> ] );
>
> Thanks,
>
> Katie
>
cfgArgs is unrelated to profiles; it is only used to pass arguments
specified in your build script to a program's configuration script. If
a configuration script does not look at these arguments, they have no
affect. Moreover, _anything_ can be passed in cfgArgs.
Setting profile, on the other hand, affects the compiler options used to
build any sources associated with the profile. In the example above
main.c will be compiled with options defined by the profile named by
arguments[0].]]>Dave Russo2009-02-23T15:36:55-00:00