Sync the kernel with the single-definition error detail
This commit is contained in:
1 parent
2cfebe914d
commit
40b0b4b6c4
4 files changed
+17
-3
No files matched your search
@@ -0,0 +1,11 @@
|
||||
#include "foundation/status.h"
|
||||
|
||||
namespace joc {
|
||||
|
||||
// The single definition of the per-thread detail string. It cannot live in the
|
||||
// header: a thread_local with dynamic initialisation that is included by several
|
||||
// translation units makes each of them emit its own TLS initialisation routine,
|
||||
// and ld64 rejects those as duplicate symbols (GNU ld and MSVC fold them).
|
||||
thread_local std::string last_error_detail;
|
||||
|
||||
} // namespace joc
|
||||
Reference in new issue
Block a user