Skip to content

Commit

Permalink
{macOS} Add QMAKE_C*FLAGS_RELEASE_WITH_DEBUGINFO to .pri file
Browse files Browse the repository at this point in the history
This turns off optimization and PIE so we at least get a reasonable stack in this case. The name lookup fails however, so the names are still mangled.

This addresses part of #8
  • Loading branch information
asmaloney committed Dec 4, 2019
1 parent 0d521eb commit b589cc6
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions asmCrashReport.pri
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,15 @@ CONFIG (release, release|debug) {

mac {
QMAKE_CFLAGS_RELEASE -= -O2
QMAKE_CFLAGS_RELEASE_WITH_DEBUGINFO -= -O2
QMAKE_CXXFLAGS_RELEASE -= -O2
QMAKE_CXXFLAGS_RELEASE_WITH_DEBUGINFO -= -O2

QMAKE_CFLAGS_RELEASE += -g -fno-pie -fno-omit-frame-pointer -O0
QMAKE_CFLAGS_RELEASE_WITH_DEBUGINFO += -fno-pie -fno-omit-frame-pointer -O0
QMAKE_CXXFLAGS_RELEASE += -g -fno-pie -fno-omit-frame-pointer -O0
QMAKE_CXXFLAGS_RELEASE_WITH_DEBUGINFO += -fno-pie -fno-omit-frame-pointer -O0

QMAKE_LFLAGS_RELEASE += -Wl,-no_pie
}
}
Expand Down

0 comments on commit b589cc6

Please sign in to comment.