Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New --no-source-mapping switch to disable line directives #2092

Merged
merged 3 commits into from
Nov 14, 2023

Conversation

lhstrh
Copy link
Member

@lhstrh lhstrh commented Nov 8, 2023

Fixes #2093.

@lhstrh lhstrh changed the title --no-source-mapping switch to disable line directives New --no-source-mapping switch to disable line directives Nov 8, 2023
@lhstrh lhstrh added the feature New feature label Nov 8, 2023
Copy link
Collaborator

@petervdonovan petervdonovan left a comment

Choose a reason for hiding this comment

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

Yep, looks good, let's merge.

I'll admit I was initially surprised to see such a big diff, but this approach is probably safer than a global variable and can't really go wrong as long as the suppress parameter comes from the right source, which should be an easy guideline to follow. An alternative would have been to strip out all the #line directives at the very end, but that wouldn't necessarily be better.

@lhstrh lhstrh added this pull request to the merge queue Nov 13, 2023
@github-merge-queue github-merge-queue bot removed this pull request from the merge queue due to failed status checks Nov 13, 2023
@lhstrh lhstrh added this pull request to the merge queue Nov 13, 2023
Merged via the queue into master with commit f01889e Nov 14, 2023
41 checks passed
@lhstrh lhstrh deleted the no-source-mapping branch November 14, 2023 01:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add an option to lfc to disable line directives
2 participants