diff options
| author | Cristian Adam <cristian.adam@gmail.com> | 2020-01-18 00:36:08 +0100 |
|---|---|---|
| committer | Victor Romero <romerosanchezv@gmail.com> | 2020-01-17 15:36:08 -0800 |
| commit | 38b959022cec1b865489d97a697eda84b49cc4e5 (patch) | |
| tree | 20fcc2f8eedbb65f7067a1d6e077d2c616111e48 /toolsrc/include/pch.h | |
| parent | f56645c3fd9a1561c430e90ce00836489b372ef8 (diff) | |
| download | vcpkg-38b959022cec1b865489d97a697eda84b49cc4e5.tar.gz vcpkg-38b959022cec1b865489d97a697eda84b49cc4e5.zip | |
Add support for building with MinGW (#9137)
* Add support for building with MinGW
Tested with MSYS2 MinGW 8.3.0, gcc-mcf.lhmouse MinGW 9.2.1,
and StephanTLavavej/mingw-distro!
* Add MinGW toolchain
From your MinGW configured shell you could just use vcpkg to
configure packages.
An x64-mingw triplet would look like:
```
set(VCPKG_TARGET_ARCHITECTURE x64)
set(VCPKG_CRT_LINKAGE dynamic)
set(VCPKG_LIBRARY_LINKAGE static)
set(VCPKG_ENV_PASSTHROUGH PATH)
set(VCPKG_CMAKE_SYSTEM_NAME MinGW)
```
* Add MinGW community tripplets
x64 tested with https://github.com/StephanTLavavej/mingw-distro
x86, arm64, arm tested with https://github.com/mstorsjo/llvm-mingw
Diffstat (limited to 'toolsrc/include/pch.h')
| -rw-r--r-- | toolsrc/include/pch.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/toolsrc/include/pch.h b/toolsrc/include/pch.h index ce2a7c9c5..a6a442f0a 100644 --- a/toolsrc/include/pch.h +++ b/toolsrc/include/pch.h @@ -31,7 +31,11 @@ #include <cstdint> #define _SILENCE_EXPERIMENTAL_FILESYSTEM_DEPRECATION_WARNING #include <cstring> +#if USE_STD_FILESYSTEM +#include <filesystem> +#else #include <experimental/filesystem> +#endif #include <fstream> #include <functional> #include <iomanip> |
