aboutsummaryrefslogtreecommitdiff
path: root/scripts/bootstrap.sh
AgeCommit message (Collapse)Author
2020-05-29[vcpkg metrics] Allow someone to opt out after build (#11542)nicole mazzuca
* [vcpkg metrics] start using json library Additionally, add floats to the JSON library since they're required. * [vcpkg metrics] allow users to disable metrics after the build Additionally, as a drive by, fix UUID generation * fix metrics data * code review
2020-05-19[vcpkg] pass -disableMetrics to bootstrap on git bash (#11299)nicole mazzuca
in git bash, we call back into bootstrap-vcpkg.bat, but we don't pass -disableMetrics through. This commit corrects this
2020-05-14[vcpkg] Turn on tests and PREfast in CI, and fix tests to pass. (#11239)Billy O'Neal
Co-authored-by: nicole mazzuca <mazzucan@outlook.com>
2020-05-07[vcpkg] Restrict telemetry uploads to TLS 1.2 (#11213)Billy O'Neal
* [vcpkg] Restrict telemetry uploads to TLS 1.2, as required by Azure security policy. Co-authored-by: nicole mazzuca <mazzucan@outlook.com>
2020-04-17[vcpkg] Fix build scripts on openSUSE and g++9 (#10867)nicole mazzuca
The existing code did not correctly pass `CXX` to cmake.
2020-04-15[vcpkg] Fix bootstrap from out of directory (#10846)nicole mazzuca
In my last PR, I broke building vcpkg from a directory that isn't the vcpkg directory; this commit fixes that.
2020-04-14[vcpkg] Clean up CMake build system (#10834)nicole mazzuca
There are quite a few changes to the CMake build system packaged up into one set here: * Added `toolsrc/cmake/utilities.cmake`, which contains the following: * `vcpkg_detect_compiler` -- get the name of the C++ compiler, as one of {gcc, clang, msvc} * `vcpkg_detect_standard_library` -- get the name of the standard library we're linking to, as one of {libstdc++, libc++, msvc-stl} * `vcpkg_detect_std_filesystem` -- figure out how to link and call into C++17's filesystem; whether one needs to link to `stdc++fs` or `c++fs`, and whether to use `<filesystem>` or `<experimental/filesystem>`. * Added a `VCPKG_WARNINGS_AS_ERRORS`, split off from `VCPKG_DEVELOPMENT_WARNINGS`, which allows one to use the development warnings without passing -Werror * Rename `DEFINE_DISABLE_METRICS` to `VCPKG_DISABLE_METRICS` -- the former will now print a deprecation message and set the latter. * Now, print a deprecation message on `WERROR`; it doesn't do anything since the behavior it requested is now the default. * Pass `-std=c++17` if the compiler allows it, instead of `-std=c++1z` * Do some code movement * Pass `USE_STD_FILESYSTEM` if possible, instead of only on minGW * Renamed to `VCPKG_USE_STD_FILESYSTEM` Additionally, we now pass `/W4` in Debug mode on x86 in the Visual Studio build system; this brings it in line with the CMake build system, and the x64 Visual Studio build system. And finally, we make some minor code changes to support compiling in VCPKG_DEVELOPMENT_WARNINGS mode.
2020-02-13Omit telemetry message when bootstrapping with `-disableMetrics` (#10061)Victor Romero
* Don't show telemetry message when passing --disableMetrics to bootstrap.sh * Don't show telemetry message when passing -disableMetrics to bootstrap-vcpkg.bat
2019-11-22update telemetrydan-shaw
2019-11-14[vcpkg] update telemetrydan-shaw
2019-10-14Fix CMake checks for Apple Clang 11.0 on macOS 10.15 (#8580)Joel Pelaez Jorge
* Fix CMake checks for Apple Clang 11.0 on macOS 10.15 * Use clang++ instance clang if allowAppleClang is enabled
2019-10-07[vcpkg] fatal_error when patch fails to apply (#8087)Stefano Sinigardi
vcpkg will now fail on failure to apply patches except when using `--head`.
2019-08-16[vcpkg] Major tool CMakeLists.txt updatesNicole Mazzuca
- Add the "VCPKG_DEVELOPMENT_WARNINGS" flag - setting "WERROR" will also set this flag - This flag is set by default - on GCC/clang, this will pass '-Wall -Wextra -Wpedantic -Werror' - on GCC, this will additionally pass '-Wmissing-declarations' - on clang, this will additionally pass '-Wmissing-prototypes' - on MSVC, this will pass '-W4 -WX' - On Visual Studio 2017 and later, pass '-permissive-' - Change the source for fallout of these changes - add `format` subcommand - formats all C++ source and header files using clang-format - move `include/vcpkg-test/catch.h` to `include/catch2/catch.hpp` - pass CONFIGURE_DEPENDS to file(GLOB)
2019-08-02Update tests, and add documentation! (#7506)nicole mazzuca
This PR does the following: * fix tests -- now, they're always built in the CMake scripts, and they work on VS2015 *add a new flag, BUILD_TESTING, which allows one to turn off testing builds * Add documentation for running tests
2019-06-19bootstrap.sh: Retry up to 3 times for transient download errors (#6952)past-due
2019-05-13[vcpkg-bootstrap.sh] Enable finding gcc 9 (#6417)Robert Schumacher
2019-04-19Run bootstrap-vcpkg.bat when bootstrapped from git-bash (#6142)Miro Knejp
* Bootstrap for windows when called from within bash for windows When calling `bootstrap-vcpkg.sh` from within a git-bash script it fails with the error message `Unknown uname: MINGW64_NT-10.0`. This change delegates bootstrapping to `bootstrap-vcpkg.bat` by executing it in a `cmd` session when the result of `uname -s` matches the pattern `MINGW*_NT*`. * [vcpkg-bootstrap] Avoid using bash extensions and keep ./bootstrap-vcpkg.sh as a simple forwarder.
2019-04-11Add -allowAppleClang option to bootstrap.sh. (fixes #4698) (#5915)soroshsabz
* Add -allowAppleClang option to bootstrap.sh. (fixes #4698) * [vcpkg-bootstrap] Simplify appleclang changes and reformat * [vcpkg-bootstrap] Remove enviroment variable VCPKG_ALLOW_APPLE_CLANG
2019-03-20[vcpkg] Update to CMake 3.14.0Robert Schumacher
2019-01-07[vcpkg] add support for FreeBSD (#4917)ivysnow
* [vcpkg] add support for FreeBSD * [x64-freebsd] Remove triplet because it is not currently in the set of supported triplets
2018-12-12[vcpkg] Add support for muslc, static crt linkage, and forcing the system ↵Robert Schumacher
binaries for cmake and ninja
2018-12-11Allow redirection of the downloads folder with an environment variable. (#4883)Billy O'Neal
* Add detection for VCPKG_DOWNLOADS environment variable in vcpkgpaths.cpp. * Pass the downloads directory from VcpkgPaths to cmake. * Also fixup bootstrap on *nix. * Make error message a little prettier. * Make that bash script actually work :) * [vcpkg] Alter Optional<> usage style * [vcpkg-docs] Add section on Environment Variables to the docs
2018-12-11Fix unterminated quoted string in bootstrapping script. (#4946)Michael Hofmann
2018-12-10Include instructions for CentOS bootstrapping (#4892)Andrew Sayman
Currently only includes Ubuntu or apt oriented system. CentOS provides similarly working compilers through devtoolsets.
2018-06-11Improve disableMetrics propagation when consuming CMakeLists directlyAlexander Karatarakis
2018-06-08Add -disableMetrics for linuxAlexander Karatarakis
2018-05-16[bootstrap.sh] Fix whitespace-in-path issuesAlexander Karatarakis
2018-05-15[bootstrap-vcpkg.sh] Find g++-8. Fixes #3486.Robert Schumacher
2018-04-27Require the version of g++ to be at least 6Francois Budin
On Ubuntu 16.04, old versions of g++ such as 4.9 are available. Other Linux distributions may also ship with g++ versions older than 5. With the previous test, the bootstrap script was not failing fast and instead was starting to compile vcpkg before it encountered the unsupported flag -std=c++1z. The error message was not very explicit and that was making it difficult to the developer to understand what the problem was. However, when using g++ 5, an clear error message was printed to help the user. This commit shows the helpful error message anytime g++ is older than version 6.
2018-04-25[bootstrap.sh] Minor refactoring for clarityAlexander Karatarakis
2018-04-25Merge pull request #3329 from rudilee/masterAlexander Karatarakis
Checking for sha512sum on OS which doesn't have shasum
2018-04-26[sh] Tweak so only the sh forwarder needs to be +xAlexander Karatarakis
2018-04-26Checking for sha512sum on OS which doesn't have shasumRudi Lee
2018-04-24[sh] Fix permissionAlexander Karatarakis
2018-04-23Introduce bootstrap.shAlexander Karatarakis