[libunwind] Remove unused _LIBUNWIND_HAS_NO_THREADS macro in tests
authorLouis Dionne <ldionne.2@gmail.com>
Thu, 19 May 2022 14:57:13 +0000 (10:57 -0400)
committerLouis Dionne <ldionne.2@gmail.com>
Thu, 19 May 2022 14:58:13 +0000 (10:58 -0400)
The _LIBUNWIND_HAS_NO_THREADS macro is only picked up by libunwind
inside its sources, so it is only required when it builds. It doesn't
need to be defined when running the tests.

libunwind/test/configs/llvm-libunwind-merged.cfg.in
libunwind/test/configs/llvm-libunwind-shared.cfg.in
libunwind/test/configs/llvm-libunwind-static.cfg.in

index 19808a1..76b572c 100644 (file)
@@ -25,7 +25,6 @@ if @LIBUNWIND_USES_ARM_EHABI@:
     config.available_features.add('libunwind-arm-ehabi')
 
 if not @LIBUNWIND_ENABLE_THREADS@:
-    compile_flags.append('-D_LIBUNWIND_HAS_NO_THREADS')
     config.available_features.add('libunwind-no-threads')
 
 if @LIBUNWIND_ENABLE_CET@:
index c0a3e4d..11c9fae 100644 (file)
@@ -28,7 +28,6 @@ if @LIBUNWIND_USES_ARM_EHABI@:
     config.available_features.add('libunwind-arm-ehabi')
 
 if not @LIBUNWIND_ENABLE_THREADS@:
-    compile_flags.append('-D_LIBUNWIND_HAS_NO_THREADS')
     config.available_features.add('libunwind-no-threads')
 
 if @LIBUNWIND_ENABLE_CET@:
index 0bb4207..ce5a6c8 100644 (file)
@@ -29,7 +29,6 @@ if @LIBUNWIND_USES_ARM_EHABI@:
     config.available_features.add('libunwind-arm-ehabi')
 
 if not @LIBUNWIND_ENABLE_THREADS@:
-    compile_flags.append('-D_LIBUNWIND_HAS_NO_THREADS')
     config.available_features.add('libunwind-no-threads')
 else:
     link_flags.append('-lpthread')