Skip to content
Snippets Groups Projects
Commit fed3dbbf authored by Thomas Schwinge's avatar Thomas Schwinge
Browse files

libgomp testsuite: Only use 'blddir' if set

(It is unclear to me why the current working directory needs to be in
'LD_LIBRARY_PATH'; leaving that alone for now.)

	libgomp/
	* testsuite/lib/libgomp.exp (libgomp_init): Only use 'blddir' if
	set.
	* testsuite/libgomp.c++/c++.exp: Likewise.
	* testsuite/libgomp.oacc-c++/c++.exp: Likewise.
parent b7b20984
No related branches found
No related tags found
No related merge requests found
...@@ -66,7 +66,6 @@ proc libgomp_init { args } { ...@@ -66,7 +66,6 @@ proc libgomp_init { args } {
global srcdir blddir objdir tool_root_dir global srcdir blddir objdir tool_root_dir
global libgomp_initialized global libgomp_initialized
global tmpdir global tmpdir
global blddir
global gluefile wrap_flags global gluefile wrap_flags
global ALWAYS_CFLAGS global ALWAYS_CFLAGS
global CFLAGS global CFLAGS
...@@ -118,7 +117,7 @@ proc libgomp_init { args } { ...@@ -118,7 +117,7 @@ proc libgomp_init { args } {
} }
# Compute what needs to be put into LD_LIBRARY_PATH # Compute what needs to be put into LD_LIBRARY_PATH
set always_ld_library_path ".:${blddir}/.libs" set always_ld_library_path "."
global offload_additional_lib_paths global offload_additional_lib_paths
if { $offload_additional_lib_paths != "" } { if { $offload_additional_lib_paths != "" } {
...@@ -157,6 +156,8 @@ proc libgomp_init { args } { ...@@ -157,6 +156,8 @@ proc libgomp_init { args } {
lappend ALWAYS_CFLAGS "additional_flags=-B${blddir}/.libs" lappend ALWAYS_CFLAGS "additional_flags=-B${blddir}/.libs"
lappend ALWAYS_CFLAGS "additional_flags=-I${blddir}" lappend ALWAYS_CFLAGS "additional_flags=-I${blddir}"
lappend ALWAYS_CFLAGS "ldflags=-L${blddir}/.libs" lappend ALWAYS_CFLAGS "ldflags=-L${blddir}/.libs"
append always_ld_library_path ":${blddir}/.libs"
} }
# The top-level include directory, for gomp-constants.h. # The top-level include directory, for gomp-constants.h.
lappend ALWAYS_CFLAGS "additional_flags=-I${srcdir}/../../include" lappend ALWAYS_CFLAGS "additional_flags=-I${srcdir}/../../include"
......
...@@ -62,7 +62,8 @@ if { $lang_test_file_found } { ...@@ -62,7 +62,8 @@ if { $lang_test_file_found } {
set_ld_library_path_env_vars set_ld_library_path_env_vars
set flags_file "${blddir}/../libstdc++-v3/scripts/testsuite_flags" set flags_file "${blddir}/../libstdc++-v3/scripts/testsuite_flags"
if { [file exists $flags_file] } { if { $blddir != ""
&& [file exists $flags_file] } {
set lang_source_re {^.*\.[cC]$} set lang_source_re {^.*\.[cC]$}
set lang_include_flags [exec sh $flags_file --build-includes] set lang_include_flags [exec sh $flags_file --build-includes]
} }
......
...@@ -68,7 +68,8 @@ if { $lang_test_file_found } { ...@@ -68,7 +68,8 @@ if { $lang_test_file_found } {
set_ld_library_path_env_vars set_ld_library_path_env_vars
set flags_file "${blddir}/../libstdc++-v3/scripts/testsuite_flags" set flags_file "${blddir}/../libstdc++-v3/scripts/testsuite_flags"
if { [file exists $flags_file] } { if { $blddir != ""
&& [file exists $flags_file] } {
set lang_source_re {^.*\.[cC]$} set lang_source_re {^.*\.[cC]$}
set lang_include_flags [exec sh $flags_file --build-includes] set lang_include_flags [exec sh $flags_file --build-includes]
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment