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

make generate_precompile a little more robust #32850

Merged
merged 2 commits into from
Aug 10, 2019

Conversation

StefanKarpinski
Copy link
Sponsor Member

@StefanKarpinski StefanKarpinski commented Aug 9, 2019

Needs the count(regex, string) method added in #32849. Only the last commit needs review for this PR since the other commit is in that PR.

@@ -138,6 +138,10 @@ function generate_precompile_statements()
statements = Set{String}()
for statement in eachline(precompile_file_h)
occursin("Main.", statement) && continue
# check for `#x##s66` style variable names not in quotes
occursin(r"#\w", statement) &&
Copy link
Sponsor Member

Choose a reason for hiding this comment

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

Might have been better to put around line 166 where the other workarounds are.

Copy link
Sponsor Member Author

Choose a reason for hiding this comment

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

Sure. Maybe a comment to clarify that this is where the workarounds live?

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