Skip to content

Commit 171eb58

Browse files
committed
Enable OpenMP on gcc for test_9856.
By default, OpenMP is not enabled in gcc, which means the test is run sequentially and compiler warnings about an unsupported #pragma. Enable OpenMP for gcc and this particular test.
1 parent 03db328 commit 171eb58

1 file changed

Lines changed: 11 additions & 8 deletions

File tree

test/Jamfile.v2

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -110,18 +110,18 @@ project
110110
<toolset>msvc:<cxxflags>/wd6246
111111
;
112112

113-
rule thread-run ( sources )
113+
rule thread-run ( sources : reqs * )
114114
{
115115
sources = $(sources) winrt_init.cpp ;
116116
return
117-
[ run $(sources) ../build//boost_thread ]
117+
[ run $(sources) ../build//boost_thread : : : $(reqs) ]
118118
[ run $(sources) ../src/tss_null.cpp ../build//boost_thread/<link>static
119-
: : : : $(sources[1]:B)_lib ]
119+
: : : $(reqs) : $(sources[1]:B)_lib ]
120120
;
121121
}
122122

123123

124-
rule thread-test ( sources )
124+
rule thread-test ( sources : reqs * )
125125
{
126126
sources = $(sources) winrt_init.cpp ;
127127
return
@@ -136,14 +136,14 @@ rule thread-test ( sources )
136136
;
137137
}
138138

139-
rule thread-run2 ( sources : name )
139+
rule thread-run2 ( sources : name : reqs * )
140140
{
141141
sources = $(sources) winrt_init.cpp ;
142142
return
143-
[ run $(sources) ../build//boost_thread : : :
143+
[ run $(sources) ../build//boost_thread : : : $(reqs)
144144
: $(name) ]
145145
[ run $(sources) ../src/tss_null.cpp ../build//boost_thread/<link>static
146-
: : :
146+
: : : $(reqs)
147147
: $(name)_lib ]
148148
;
149149
}
@@ -362,7 +362,10 @@ rule generate_self_contained_header_tests
362362
[ thread-run test_7571.cpp ]
363363
[ thread-run test_9319.cpp ]
364364
#[ thread-run test_9711.cpp ] This is an invalid use of ::then deferred.
365-
[ thread-run test_9856.cpp ]
365+
[ thread-run test_9856.cpp :
366+
<toolset>gcc:<cxxflags>-fopenmp
367+
<toolset>gcc:<linkflags>-fopenmp
368+
]
366369
[ thread-compile test_10963.cpp : : test_10963_c ]
367370
[ thread-run test_10964.cpp ]
368371
[ thread-test test_11053.cpp ]

0 commit comments

Comments
 (0)