Skip to content
Snippets Groups Projects
Commit 85d7d4e1 authored by Charlie Sharpsteen's avatar Charlie Sharpsteen Committed by Adam Vandenberg
Browse files

Add method to ENV for setting up a debug build


`ENV.Og` clears all optimization flags and adds `-g -O0`.

Signed-off-by: default avatarAdam Vandenberg <flangy@gmail.com>
parent 783be64c
No related branches found
No related tags found
No related merge requests found
......@@ -104,6 +104,11 @@ module HomebrewEnvExtension
remove_from_cflags(/-O./)
append_to_cflags '-Os'
end
def Og
# Sometimes you want a debug build
remove_from_cflags(/-O./)
append_to_cflags '-g -O0'
end
def gcc_4_0_1
self['CC'] = self['LD'] = '/usr/bin/gcc-4.0'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment