zig/test/standalone/libcxx/mt_doit.cpp
Michael Dusan 2cd536d7e8 libcxx: fix building when -fsingle-threaded
* 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
2024-06-08 15:34:19 -04:00

7 lines
141 B
C++

#include <iostream>
#include <thread>
extern "C" void doit() {
std::cout << "mt: thread=" << std::this_thread::get_id() << std::endl;
}