Skip to content

Add -g when compiling with fsanitize#31

Open
Matistjati wants to merge 1 commit intoKodsport:masterfrom
Matistjati:debuginfo
Open

Add -g when compiling with fsanitize#31
Matistjati wants to merge 1 commit intoKodsport:masterfrom
Matistjati:debuginfo

Conversation

@Matistjati
Copy link
Member

I see no reason not to do it. Pretty nice to get line numbers when fsanitize crashes. It goes from
#1 0x557e8aa68e68 in main (/home/matis/po-repos/<...>/data/joshuan2+0x15e68)
to
#2 0x556ed9309e68 in main /home/matis/po-repos/<...>/submissions/accepted/joshuan2.cpp:45

Copy link
Collaborator

@simonlindholm simonlindholm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there's a compile time tradeoff but I don't know if it's significant (if so -g1 might work around it)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants