mirror of
https://github.com/CLIUtils/CLI11.git
synced 2025-04-30 12:43:52 +00:00
fix: add WASI build support (#679)
Addresses: wasm-ld: error: CMakeFiles/WebAssemblyInterfaceHeaderTest1.dir/test/WebAssemblyInterfaceHeaderTest1.cxx.o: undefined symbol: std::__2::__fs::filesystem::__status(std::__2::__fs::filesystem::path const&, std::__2::error_code*) /usr/wasi-sdk-14.0/share/wasi-sysroot/include/c++/v1/filesystem:256:3: error: "The Filesystem library is not supported by this configuration of libc++" # error "The Filesystem library is not supported by this configuration of libc++"
This commit is contained in:
parent
52ee425d95
commit
612f4584b6
@ -32,6 +32,9 @@
|
||||
// Filesystem cannot be used if targeting macOS < 10.15
|
||||
#if defined __MAC_OS_X_VERSION_MIN_REQUIRED && __MAC_OS_X_VERSION_MIN_REQUIRED < 101500
|
||||
#define CLI11_HAS_FILESYSTEM 0
|
||||
#elif defined(__wasi__)
|
||||
// As of wasi-sdk-14, filesystem is not implemented
|
||||
#define CLI11_HAS_FILESYSTEM 0
|
||||
#else
|
||||
#include <filesystem>
|
||||
#if defined __cpp_lib_filesystem && __cpp_lib_filesystem >= 201703
|
||||
|
Loading…
x
Reference in New Issue
Block a user