-
Notifications
You must be signed in to change notification settings - Fork 5.8k
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
8293088: Fix compilation with the new Visual Studio preprocessor #10080
Conversation
👋 Welcome back djelinski! A progress list of the required criteria for merging this PR into |
@djelinski The following labels will be automatically applied to this pull request:
When this pull request is ready to be reviewed, an "RFR" email will be sent to the corresponding mailing lists. If you would like to change these labels, use the /label pull request command. |
@djelinski This change now passes all automated pre-integration checks. ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details. After integration, the commit message for the final commit will be:
You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed. At the time when this comment was updated there had been 6 new commits pushed to the
Please see this link for an up-to-date comparison between the source branch of this pull request and the ➡️ To integrate this PR with the above commit message to the |
Fixing the compilation is one thing. But did you verify that it actually works as intended ? |
I verified that client tests still pass. I also verified on a separate project that merging strings with and without ## is equivalent when Zc:preprocessor is absent. When it is present, merging with ## is an error. I did not verify the output of the changed macros, but I'm pretty confident that their behavior will not change. If you could suggest a test, I'll be happy to perform it. |
FWIW, here's the test that I used:
Output:
removing |
I verified the preprocessor output on |
/integrate |
Going to push as commit e945619.
Your commit was automatically rebased without conflicts. |
@djelinski Pushed as commit e945619. 💡 You may see a message that your pull request was closed with unmerged commits. This can be safely ignored. |
Fix compilation with Zc:preprocessor enabled.
The flag itself will be enabled in JDK-8247283; I enabled the flag using instructions found in Magnus's comment on that issue.
Windows 10 SDK version 2104 (10.0.20348.0) is required for successful compilation. Compilation fails with a warning (treated as error by default) with older versions of Windows 10 SDK.
I verified that the compilation completes successfully with this patch, both in debug and in release mode, both with and without Zc:preprocessor.
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk pull/10080/head:pull/10080
$ git checkout pull/10080
Update a local copy of the PR:
$ git checkout pull/10080
$ git pull https://git.openjdk.org/jdk pull/10080/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 10080
View PR using the GUI difftool:
$ git pr show -t 10080
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/10080.diff