HomePhabricator

Reset default -g -O2 flags when enable debug

Authored by Wladimir J. van der Laan <laanwj@gmail.com> on Feb 15 2019, 15:11.

Description

Reset default -g -O2 flags when enable debug

Summary:
9882d1f044133832b3c0809676d5f26a861b9f44 Reset default -g -O2 flags when enable debug (Chun Kuan Lee)

Pull request description:

The default CXXFLAGS is -g -O2, this should not appear when enable debug.
fixes #13432

Tree-SHA512: 79447f3e1fab9e6cd12f5ca49b3d42187e856e0c159ed01140ea93d6ef1fbb1af3d65b338308566330491052c0177d12abe26796513502ddde31692665a0dbb4

This is a port of core PR #13445

Test Plan: ./autogen.sh && ./configure --enable-debug then check that CXXFLAGS starts with "-g3 -O0" and does not contain "-O2`

Reviewers: #bitcoin_abc, deadalnix, Fabien

Reviewed By: #bitcoin_abc, deadalnix, Fabien

Subscribers: teamcity, schancel

Differential Revision: https://reviews.bitcoinabc.org/D2556

Details

Committed
sickpigFeb 15 2019, 16:29
Pushed
sickpigFeb 15 2019, 16:29
Reviewer
Restricted Project
Differential Revision
D2556: Reset default -g -O2 flags when enable debug
Parents
rABC392fbd574861: Update timing.json
Branches
Unknown
Tags
Unknown

Event Timeline

sickpig committed rABC74fdb9ee4424: Reset default -g -O2 flags when enable debug (authored by Wladimir J. van der Laan <laanwj@gmail.com>).Feb 15 2019, 16:29