This file does not compile on Windows using clang. Swift comes bundled with clang. Though I disabled the bundled LLVM files that Swift adds to the path environment variable, to use my already installed clang version.
#if __APPLE__
#include <xlocale.h>
#elif __linux__
#include <locale.h>
#endif
The errors are about strptime_l and locale_t. The former doesn't exist on Windows, the latter is only available as _locale_t.
Is the clang version that is bundled with Swift a modified version of clang that adds this? As the target is unknown rather than pc.
Or is it a known issue?
clang version 21.1.6
Target: x86_64-unknown-windows-msvc
Thread model: posix
Build config: +assertions
My clang version:
clang version 22.1.8 (https://github.com/llvm/llvm-project ca7933e47d3a3451d81e72ac174dcb5aa28b59d1)
Target: x86_64-pc-windows-msvc
Thread model: posix
This file does not compile on Windows using clang. Swift comes bundled with clang. Though I disabled the bundled LLVM files that Swift adds to the path environment variable, to use my already installed clang version.
The errors are about strptime_l and locale_t. The former doesn't exist on Windows, the latter is only available as _locale_t.
Is the clang version that is bundled with Swift a modified version of clang that adds this? As the target is unknown rather than pc.
Or is it a known issue?
My clang version: