-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
compile_args in _build.cfg does not seem to work #5
Comments
I have found the reason for this. It's complicated. The bottom line is that Sinan is using the flavors.development.build.compile_args sinan:do_task/4 calls sin_build_config:start_config/4. In the init([BuildId, Here's an extract from the config dict (converted to_list). [{"task.build.compile_args","-DFOOBAR +debug_info"}, The compile_args I want is the one in task.build.compile_args. But the A workaround is to edit the priv/default_build file and out in the args you like I don't have a patch to correct this at this time. I'm hoping you will know exactly Also, there is a bug in sin_build_arg_parser.erl. In an attempt to remove spaces, The effect of this is that any compile_args identifiers that are parsed will lose all Delete comment Comment 2 by emofine, Oct 18, 2008 It must be noted that the _build.cfg file needs to include a section named "tasks" Example _build.cfg tasks section: tasks : { I also put back the display of the compile flags, which seemed to have disappeared in |
This is resolved in the current sinan |
What steps will reproduce the problem?
beam file either.
task : {
build : {
compile_args : "+debug_info -DDEBUG_LOGGING"
}
}
In fact I added code to sinan (patch forthcoming) to show the compiler args
and the above seems to be ignored.
=INFO REPORT==== 17-Sep-2008::20:49:03 ===
[RUN:"1771b9f2-804f-48ea-aa7a-982435b2288e"] build:compile_options
generated event:Compile Options: [{warn_format,1},
debug_info,
{outdir,"/home/efine/work/blah/otp/_build/development/apps/yaws-1.77/ebin"},
strict_record_tests,return_errors,return_warnings,
{i,"/home/efine/work/blah/otp/lib/yaws/include"},
{i,"/home/efine/.sinan/repo/stdlib-1.15.3/include"},
{i,"/home/efine/.sinan/repo/kernel-2.12.3/include"},
{i,"/home/efine/.sinan/repo/eunit-2.0/include"}]
The text was updated successfully, but these errors were encountered: