Main

11.1 EDK - Removing the -g compiler option in the Software Platform Settings seems to have no effect

AR# 24779

Search For Another Answer

Topic EDK-XPS
Last Updated 04/27/2009
Status Active
Description

Keywords: debug, extra, compiler, option, s/w

If I do not want to have debugging information passed into my executable, how can I make sure that the -g option is not passed?

When I remove this setting in the Software Platform Settings dialog, the log shows that the -g was still passed.

Solution

The EXTRA_COMPILER_FLAGS field needs to have an option. When no options are present, the compiler defaults to the -g option.

To work around this problem, pass another option that you know you will be using, such as an optimization level (-O0, -O1, etc.).


 
 
/csi/footer.htm