File tree Expand file tree Collapse file tree 3 files changed +6
-12
lines changed Expand file tree Collapse file tree 3 files changed +6
-12
lines changed Original file line number Diff line number Diff line change @@ -20,12 +20,8 @@ if (OPENMP_STANDALONE_BUILD OR "${CMAKE_SOURCE_DIR}" STREQUAL "${CMAKE_CURRENT_S
20
20
"at least 3.20.0 now to avoid issues in the future!" )
21
21
endif ()
22
22
endif ()
23
+
23
24
option (WITH_HPXC "Use HPX threading system." OFF )
24
- if (WITH_HPXC )
25
- message ("Using HPXC" )
26
- set (LIBOMP_USE_STDCPPLIB TRUE )
27
- find_package (HPX REQUIRED )
28
- endif ()
29
25
30
26
# Must go below project(..)
31
27
include (GNUInstallDirs )
Original file line number Diff line number Diff line change @@ -50,12 +50,11 @@ if config.has_omit_frame_pointer_flag:
50
50
51
51
if config .with_hpxc :
52
52
flags += " -I " + config .hpxc_header_directory + \
53
- " -L " + config .hpxc_library_directory + \
54
- " -L " + os . path . realpath ( config . hpx_library_directory ) + \
55
- " --include=hpxc/threads.h "
53
+ " -L " + os . path . realpath ( config .hpxc_library_directory ) + \
54
+ " --include=hpxc/threads.h --include=hpxc/util/wrap_main.h " + \
55
+ " -DHPXC_HAVE_DYNAMIC_HPXC_MAIN "
56
56
57
57
print ("with_hpxc: " + str (config .with_hpxc ))
58
- print ("hpx_library_directory: " + config .hpx_library_directory )
59
58
60
59
config .test_flags = " -I " + config .omp_header_directory + flags
61
60
config .test_flags_use_compiler_omp_h = flags
@@ -68,8 +67,8 @@ if config.has_libm:
68
67
if config .has_libatomic :
69
68
libs += " -latomic"
70
69
if (config .with_hpxc ):
71
- libs += " -lhpx -lhpx_core -lhpx_hpxc -lc++ "
72
- prepend_dynamic_library_path (config .hpx_library_directory )
70
+ libs += " -lhpx_hpxc -lhpxc_wrap -Wl,-wrap=main "
71
+ prepend_dynamic_library_path (config .hpxc_library_directory )
73
72
74
73
# Allow REQUIRES / UNSUPPORTED / XFAIL to work
75
74
config .target_triple = [ ]
Original file line number Diff line number Diff line change @@ -23,7 +23,6 @@ config.target_arch = "@LIBOMP_ARCH@"
23
23
config.with_hpxc = @WITH_HPXC@
24
24
config.hpxc_header_directory = "@HPXC_DIR@/include"
25
25
config.hpxc_library_directory = "@HPXC_DIR@/lib"
26
- config.hpx_library_directory = "@HPX_DIR@/../../"
27
26
28
27
# Let the main config do the real work.
29
28
lit_config.load_config(config, "@LIBOMP_BASE_DIR@/test/lit.cfg")
You can’t perform that action at this time.
0 commit comments