Skip to content

[vcpkg] Fix build on Windows 8.1 SDK#12586

Merged
strega-nil merged 1 commit intomicrosoft:masterfrom
strega-nil:build-8.1
Jul 31, 2020
Merged

[vcpkg] Fix build on Windows 8.1 SDK#12586
strega-nil merged 1 commit intomicrosoft:masterfrom
strega-nil:build-8.1

Conversation

@strega-nil
Copy link
Copy Markdown
Contributor

PR #12400 added SYMBOLIC_LINK_FLAG_ALLOW_UNPRIVILEGED_CREATE, which was added in an SDK that is newer than the oldest we support. Therefore, check for the existence of that flag before we use it.

cc @BillyONeal

@strega-nil strega-nil requested a review from BillyONeal July 27, 2020 01:53
@PhoebeHui PhoebeHui self-assigned this Jul 27, 2020
@JackBoosY JackBoosY added category:vcpkg-bug The issue is with the vcpkg system (including helper scripts in `scripts/cmake/`) info:internal labels Jul 27, 2020
@PhoebeHui
Copy link
Copy Markdown
Contributor

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@strega-nil
Copy link
Copy Markdown
Contributor Author

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@strega-nil
Copy link
Copy Markdown
Contributor Author

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

const DWORD flags = SYMBOLIC_LINK_FLAG_ALLOW_UNPRIVILEGED_CREATE;
const DWORD flags =
#if defined(SYMBOLIC_LINK_FLAG_ALLOW_UNPRIVILEGED_CREATE)
SYMBOLIC_LINK_FLAG_ALLOW_UNPRIVILEGED_CREATE;
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

It might make sense to just say "2" or copy pasta the implementation from the Microsoft/STL repo.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

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

Given that we never actually get here, I'm going to worry about that when we rewrite the Files implementation :P

@strega-nil
Copy link
Copy Markdown
Contributor Author

/azp run

@azure-pipelines
Copy link
Copy Markdown

Azure Pipelines successfully started running 1 pipeline(s).

@strega-nil strega-nil merged commit 37f7d69 into microsoft:master Jul 31, 2020
@strega-nil strega-nil deleted the build-8.1 branch August 2, 2020 04:30
hellozee pushed a commit to hellozee/vcpkg that referenced this pull request Sep 11, 2020
strega-nil added a commit to strega-nil/vcpkg that referenced this pull request May 5, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

category:vcpkg-bug The issue is with the vcpkg system (including helper scripts in `scripts/cmake/`)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants