diff options
| author | Michael Forney <mforney@mforney.org> | 2019-06-27 15:16:39 -0700 |
|---|---|---|
| committer | Michael Forney <mforney@mforney.org> | 2019-06-27 18:18:34 -0700 |
| commit | 1acbd4da02eb82a035c00a2f484364453469ff06 (patch) | |
| tree | baf1d665ad859818b63a523d105a5d8329446df1 /probe | |
| parent | fe0aae18e5024fc8027846fcec45fb5f1b7a11c9 (diff) | |
Detect TLS support in compiler
Diffstat (limited to 'probe')
| -rw-r--r-- | probe/HAVE__THREAD_LOCAL | 4 | ||||
| -rw-r--r-- | probe/gen.lua | 1 |
2 files changed, 5 insertions, 0 deletions
diff --git a/probe/HAVE__THREAD_LOCAL b/probe/HAVE__THREAD_LOCAL new file mode 100644 index 00000000..fe1a4e57 --- /dev/null +++ b/probe/HAVE__THREAD_LOCAL @@ -0,0 +1,4 @@ +_Thread_local int x; +int main(void) { + return x; +} diff --git a/probe/gen.lua b/probe/gen.lua index 321f283c..56d470ec 100644 --- a/probe/gen.lua +++ b/probe/gen.lua @@ -4,6 +4,7 @@ end probe('HAVE_IMMINTRIN_H') probe('HAVE__MM_MOVEMASK_EPI8') +probe('HAVE__THREAD_LOCAL') local function probesize(var) build('probesize', '$outdir/'..var, {'$dir/'..var, '|', 'scripts/probe-size.sh'}, {var=var}) |
