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

Build the compiler with PCRE2 #13084

Merged

Conversation

straight-shoota
Copy link
Member

The explicit selection of PCRE2 via -D use_pcre2 is intentional. We want the compiler to built with PCRE2 and not silently fall back to PCRE.

Copy link
Contributor

@HertzDevil HertzDevil left a comment

Choose a reason for hiding this comment

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

The first generation cross-compilation command to Windows also needs an explicit -Duse_pcre2

@straight-shoota straight-shoota marked this pull request as draft February 21, 2023 16:54
@straight-shoota
Copy link
Member Author

Converted to draft. There are a couple of CI issues with PCRE2 that need to be resolved first.

@straight-shoota straight-shoota force-pushed the feature/compiler-pcre2 branch 2 times, most recently from 8be84d6 to cdf9edc Compare February 24, 2023 07:49
@straight-shoota
Copy link
Member Author

CI is all green. This is ready for review now.

@straight-shoota straight-shoota marked this pull request as ready for review February 25, 2023 13:18
@straight-shoota straight-shoota added this to the 1.8.0 milestone Feb 27, 2023
@@ -15,13 +15,18 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
crystal_bootstrap_version: [1.2.2, 1.3.2, 1.4.1, 1.5.1, 1.6.2, 1.7.2]
crystal_bootstrap_version: [1.2.2, 1.3.2, 1.4.1, 1.5.1, 1.6.2]
env: ["USE_PCRE1=true"]
Copy link
Contributor

Choose a reason for hiding this comment

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

Hash notation seems more natural:

Suggested change
env: ["USE_PCRE1=true"]
env:
USE_PCRE1: true

Copy link
Contributor

@Sija Sija Feb 27, 2023

Choose a reason for hiding this comment

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

Oh shit, I've noticed just now that's not jobs.<job_id>.env but rather a matrix variable called env. In this case using hash notation rather won't work, sorry for the mixup. btw, I'd suggest renaming this variable to something more descriptive, like flags, so it gives better understanding what is it for and won't mixup with the env key, which is a thing for GHA.

Copy link
Contributor

Choose a reason for hiding this comment

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

@straight-shoota This most likely broke the CI :(

Copy link
Member Author

Choose a reason for hiding this comment

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

Oh shit. Thanks for noticing.
What's really, really bad about this is that the GitHub Actions summary on the PR and commit doesn't mention this. The workflow file failed to parse but that's not reported as a failure? WTF.

.github/workflows/linux.yml Outdated Show resolved Hide resolved
.github/workflows/linux.yml Outdated Show resolved Hide resolved
.github/workflows/linux.yml Outdated Show resolved Hide resolved
Co-authored-by: Sijawusz Pur Rahnama <sija@sija.pl>
@straight-shoota straight-shoota removed this from the 1.8.0 milestone Feb 27, 2023
@straight-shoota straight-shoota added this to the 1.8.0 milestone Feb 28, 2023
@straight-shoota straight-shoota merged commit 820b7af into crystal-lang:master Feb 28, 2023
@straight-shoota straight-shoota deleted the feature/compiler-pcre2 branch February 28, 2023 17:24
This was referenced Mar 1, 2023
This pull request was closed.
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.

4 participants