mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 22:04:21 +00:00
* Skip building libcxx mt-only source files when single-threaded.
* This change is required for llvm18 libcxx.
* Add standalone test to link a trivial:
- mt-executable with libcxx
- st-executable with libcxx
6 lines
141 B
C++
6 lines
141 B
C++
#include <iostream>
|
|
#include <thread>
|
|
|
|
extern "C" void doit() {
|
|
std::cout << "mt: thread=" << std::this_thread::get_id() << std::endl;
|
|
}
|