diff options
Diffstat (limited to 'libgomp/testsuite/libgomp.c++/c++.exp')
-rw-r--r-- | libgomp/testsuite/libgomp.c++/c++.exp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/libgomp/testsuite/libgomp.c++/c++.exp b/libgomp/testsuite/libgomp.c++/c++.exp index f11482c7315..f3f42de6619 100644 --- a/libgomp/testsuite/libgomp.c++/c++.exp +++ b/libgomp/testsuite/libgomp.c++/c++.exp @@ -31,8 +31,15 @@ if { $lang_test_file_found } { set ld_library_path "$always_ld_library_path:${blddir}/${lang_library_path}" set_ld_library_path_env_vars + set flags_file "${blddir}/../libstdc++-v3/scripts/testsuite_flags" + if { [file exists $flags_file] } { + set libstdcxx_includes [exec sh $flags_file --build-includes] + } else { + set libstdcxx_includes "" + } + # Main loop. - gfortran-dg-runtest $tests "" + gfortran-dg-runtest $tests $libstdcxx_includes } # All done. |