Commit c83eabf3 authored by Austin Seipp's avatar Austin Seipp

Fix check for TLS support in Storage.c

This should have manifested earlier, but for some reason it only seemed
to trigger on Mavericks.
Signed-off-by: default avatarAustin Seipp <austin@well-typed.com>
parent a365eabd
......@@ -237,7 +237,7 @@ void storageAddCapabilities (nat from, nat to)
}
}
#if defined(THREADED_RTS) && defined(llvm_CC_FLAVOR)
#if defined(THREADED_RTS) && defined(llvm_CC_FLAVOR) && (CC_SUPPORTS_TLS == 0)
newThreadLocalKey(&gctKey);
#endif
......@@ -261,7 +261,7 @@ freeStorage (rtsBool free_heap)
closeMutex(&sm_mutex);
#endif
stgFree(nurseries);
#if defined(THREADED_RTS) && defined(llvm_CC_FLAVOR)
#if defined(THREADED_RTS) && defined(llvm_CC_FLAVOR) && (CC_SUPPORTS_TLS == 0)
freeThreadLocalKey(&gctKey);
#endif
freeGcThreads();
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment