diff options
| author | Robert Schumacher <roschuma@microsoft.com> | 2020-12-30 12:12:17 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-12-30 12:12:17 -0800 |
| commit | 6772fdd145f2b69da18cdf14a5f93bc935aaf7e9 (patch) | |
| tree | cccc445d310b1da351fbd9e2c398d1b223e8675d /toolsrc/include | |
| parent | f55a5d91d965ec3aa7c5ce63872fcd5d90cc635e (diff) | |
| download | vcpkg-6772fdd145f2b69da18cdf14a5f93bc935aaf7e9.tar.gz vcpkg-6772fdd145f2b69da18cdf14a5f93bc935aaf7e9.zip | |
[vcpkg] Teach `vcpkg install` `--no-build-missing` (#15139)
* [vcpkg] Teach `vcpkg install` `--no-build-missing`
This switch causes failure to restore from cache to abort the build instead of performing a just-in-time build.
This is useful in complex CI systems where the build was expected to have been performed previously, such as via another pipeline.
* [vcpkg] Rename flag to require binary caching
Diffstat (limited to 'toolsrc/include')
| -rw-r--r-- | toolsrc/include/vcpkg/build.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/toolsrc/include/vcpkg/build.h b/toolsrc/include/vcpkg/build.h index 88a12e5c1..bd5188b9f 100644 --- a/toolsrc/include/vcpkg/build.h +++ b/toolsrc/include/vcpkg/build.h @@ -42,6 +42,7 @@ namespace vcpkg::Build FILE_CONFLICTS, CASCADED_DUE_TO_MISSING_DEPENDENCIES, EXCLUDED, + CACHE_MISSING, DOWNLOADED }; @@ -141,8 +142,15 @@ namespace vcpkg::Build PROHIBIT }; + enum class BuildMissing + { + NO = 0, + YES + }; + struct BuildPackageOptions { + BuildMissing build_missing; UseHeadVersion use_head_version; AllowDownloads allow_downloads; OnlyDownloads only_downloads; @@ -156,6 +164,7 @@ namespace vcpkg::Build }; static constexpr BuildPackageOptions default_build_package_options{ + Build::BuildMissing::YES, Build::UseHeadVersion::NO, Build::AllowDownloads::YES, Build::OnlyDownloads::NO, @@ -169,6 +178,7 @@ namespace vcpkg::Build }; static constexpr BuildPackageOptions backcompat_prohibiting_package_options{ + Build::BuildMissing::YES, Build::UseHeadVersion::NO, Build::AllowDownloads::YES, Build::OnlyDownloads::NO, |
