'clang-cl argument unknown -ftls-model=initial-exec
The command:
clang-cl.exe -Wall -Wextra -ftls-model=initial-exec null.cpp
fails with the message:
clang-cl: warning: unknown argument ignored in clang-cl: '-ftls-model=initial-exec' [-Wunknown-argument]
The argument can be found here: https://clang.llvm.org/docs/CommandGuide/clang.html#cmdoption-ftls-model
*null.cpp is a empty file.
Running the command clang-cl.exe --version prints:
clang version 13.0.0
Target: i686-pc-windows-msvc
Thread model: posix
InstalledDir: C:\PROGRA~1\MICROS~3\2022\PREVIEW\VC\Tools\Llvm\bin
Is this argument not available when using clang-cl or when compiling on Windows?
*This argument is used when building mimalloc (Microsoft memory allocator) as a cmake dependecy using add_subdirectory(...).
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
