Skip to content

Commit 4e80c53

Browse files
[lldb][tests] Fix passing pthread library to a linker for some API tests (#118530)
Specify ENABLE_THREADS := YES within test's Makefile instead of passing -lpthread explicitly via the compiler's CFLAGS options. Refactoring fix. Co-authored-by: Vladimir Vereschaka <[email protected]>
1 parent 7aec6dc commit 4e80c53

File tree

4 files changed

+7
-4
lines changed
  • lldb/test/API
    • commands/register/register
      • aarch64_sme_z_registers/za_dynamic_resize
      • aarch64_sve_registers/rw_access_dynamic_resize
    • functionalities/process_save_core_minidump
    • tools/lldb-dap/threads

4 files changed

+7
-4
lines changed
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
C_SOURCES := main.c
22

3-
CFLAGS_EXTRAS := -march=armv8-a+sve+sme -lpthread
3+
CFLAGS_EXTRAS := -march=armv8-a+sve+sme
4+
ENABLE_THREADS := YES
45

56
include Makefile.rules
Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
C_SOURCES := main.c
22

3-
CFLAGS_EXTRAS := -march=armv8-a+sve -lpthread
3+
CFLAGS_EXTRAS := -march=armv8-a+sve
4+
ENABLE_THREADS := YES
45

56
include Makefile.rules
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CXX_SOURCES := main.cpp
22

3-
CFLAGS_EXTRAS := -lpthread
3+
ENABLE_THREADS := YES
44

55
include Makefile.rules
66

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
C_SOURCES := main.c
2-
CFLAGS_EXTRAS := -lpthread
2+
3+
ENABLE_THREADS := YES
34

45
include Makefile.rules

0 commit comments

Comments
 (0)