Skip to content

Add flag to enable LLVM backend debugging#3207

Merged
rv-jenkins merged 2 commits intodevelopfrom
kompile-debug-flag
Mar 2, 2023
Merged

Add flag to enable LLVM backend debugging#3207
rv-jenkins merged 2 commits intodevelopfrom
kompile-debug-flag

Conversation

@Baltoli
Copy link
Copy Markdown
Contributor

@Baltoli Baltoli commented Mar 2, 2023

The old syntax for enabling debug support was a bit clunky and prone to typos / errors (e.g. I flagged runtimeverification/llvm-backend#666 as an issue without realising that the error I was seeing was due to using -O0 rather than -O1).

This PR adds a new flag to kompile (--enable-llvm-debug) that abstracts the debugger invocation; internally, it just passes -g -O1 to Clang as per the old flag.

I plan to follow this up at some point with an integration test for the debugger, but I haven't quite figured out the ergonomics of doing so.

@rv-jenkins rv-jenkins changed the base branch from master to develop March 2, 2023 12:47
@Baltoli Baltoli requested a review from radumereuta March 2, 2023 13:04
@Baltoli Baltoli marked this pull request as ready for review March 2, 2023 13:04
@Baltoli Baltoli force-pushed the kompile-debug-flag branch from 24c53d4 to 1b77b7d Compare March 2, 2023 13:06
@Baltoli Baltoli self-assigned this Mar 2, 2023
@rv-jenkins rv-jenkins merged commit e817b86 into develop Mar 2, 2023
@rv-jenkins rv-jenkins deleted the kompile-debug-flag branch March 2, 2023 14:42
@Baltoli Baltoli mentioned this pull request Dec 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants