Skip to content

Commit 541afb6

Browse files
committed
ompi/tools/wrappers/ompi_wrapper_script.in: fix variable name typo
When open-mpi is compiled with script wrapper compilers option: ./configure --enable-script-wrapper-compilers ... The generated wrappers emit warnings: Name "main::wrapper_cflags_prefix" used only once: possible typo at ./mpicc line 104. Commit 1f18b20 "wrappers: Improve static library handling" introduced new global variables prefixed with "wrapper_". The declaration of "$wrapper_cflags_prefix" was prefixed twice. This commit fixes this issue by correctly naming the variable. Signed-off-by: Julien Olivain <[email protected]>
1 parent 5c74bbd commit 541afb6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

ompi/tools/wrappers/ompi_wrapper_script.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ my $CXX = "@CXX@";
3939
my $FC = "@FC@";
4040
my $wrapper_cppflags = "@OMPI_WRAPPER_CPPFLAGS@";
4141
my $wrapper_cflags = "@OMPI_WRAPPER_CFLAGS@";
42-
my $wrapper_wrapper_cflags_prefix = "@OMPI_WRAPPER_CFLAGS_PREFIX@";
42+
my $wrapper_cflags_prefix = "@OMPI_WRAPPER_CFLAGS_PREFIX@";
4343
my $wrapper_cxxflags = "@OMPI_WRAPPER_CXXFLAGS@";
4444
my $wrapper_cxxflags_prefix = "@OMPI_WRAPPER_CXXFLAGS_PREFIX@";
4545
my $wrapper_fcflags = "@OMPI_WRAPPER_FCFLAGS@";

0 commit comments

Comments
 (0)