Skip to content

Commit 2443a27

Browse files
committed
FDS Build: Change default compiler variable names
1 parent 78fdbe5 commit 2443a27

File tree

1 file changed

+22
-22
lines changed

1 file changed

+22
-22
lines changed

Build/Scripts/set_thirdparty_compilers.sh

Lines changed: 22 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,35 @@
11
echo "FDS build target = $FDS_BUILD_TARGET"
22

33
# For following variables 1- indicate availble through
4-
# environment variable FIREMODELS_CC, FIREMODELS_CXX, and FIREMODELS_FC
4+
# environment variable FIREMODELS_LIBS_CC, FIREMODELS_LIBS_CXX, and FIREMODELS_LIBS_FC
55
set_CC=0
66
set_CXX=0
77
set_FC=0
88

9-
if [ -n "$FIREMODELS_CC" ]; then
10-
CC=$FIREMODELS_CC
9+
if [ -n "$FIREMODELS_LIBS_CC" ]; then
10+
CC=$FIREMODELS_LIBS_CC
1111
if command -v $CC &> /dev/null; then
1212
set_CC=1
1313
else
14-
echo "The compiler specified by the FIREMODELS_CC environment variable ($CC) is not available on this system. Searching for an alternative compiler."
14+
echo "The compiler specified by the FIREMODELS_LIBS_CC environment variable ($CC) is not available on this system. Searching for an alternative compiler."
1515
fi
1616
fi
1717

18-
if [ -n "$FIREMODELS_CXX" ]; then
19-
CXX=$FIREMODELS_CXX
18+
if [ -n "$FIREMODELS_LIBS_CXX" ]; then
19+
CXX=$FIREMODELS_LIBS_CXX
2020
if command -v $CXX &> /dev/null; then
2121
set_CXX=1
2222
else
23-
echo "The compiler specified by the FIREMODELS_CXX environment variable ($CXX) is not available on this system. Searching for an alternative compiler."
23+
echo "The compiler specified by the FIREMODELS_LIBS_CXX environment variable ($CXX) is not available on this system. Searching for an alternative compiler."
2424
fi
2525
fi
2626

27-
if [ -n "$FIREMODELS_FC" ]; then
28-
FC=$FIREMODELS_FC
27+
if [ -n "$FIREMODELS_LIBS_FC" ]; then
28+
FC=$FIREMODELS_LIBS_FC
2929
if command -v $FC &> /dev/null; then
3030
set_FC=1
3131
else
32-
echo "The compiler specified by the FIREMODELS_FC environment variable ($FC) is not available on this system. Searching for an alternative compiler."
32+
echo "The compiler specified by the FIREMODELS_LIBS_FC environment variable ($FC) is not available on this system. Searching for an alternative compiler."
3333
fi
3434
fi
3535

@@ -44,7 +44,7 @@ if [[ "$FDS_BUILD_TARGET" == *"osx"* ]]; then
4444
elif command -v gcc &> /dev/null; then
4545
CC=gcc
4646
else
47-
echo "Error: Any of mpicc, iclang, or gcc is not available on this system."
47+
echo "Error: Any of mpicc, clang, or gcc compiler is not available on this system."
4848
exit 1
4949
fi
5050
fi
@@ -58,7 +58,7 @@ if [[ "$FDS_BUILD_TARGET" == *"osx"* ]]; then
5858
elif command -v g++ &> /dev/null; then
5959
CXX=g++
6060
else
61-
echo "Error: Any of mpicxx, clang++, or g++ is not available on this system."
61+
echo "Error: Any of mpicxx, clang++, or g++ compiler is not available on this system."
6262
exit 1
6363
fi
6464
fi
@@ -70,7 +70,7 @@ if [[ "$FDS_BUILD_TARGET" == *"osx"* ]]; then
7070
elif command -v gfortran &> /dev/null; then
7171
FC=gfortran
7272
else
73-
echo "Error: gfortran is not available on this system."
73+
echo "Error: Any of mpifort or gfortran compiler is not available on this system."
7474
exit 1
7575
fi
7676
fi
@@ -87,7 +87,7 @@ elif [[ "$FDS_BUILD_TARGET" == *"intel"* ]]; then
8787
elif command -v icc &> /dev/null; then
8888
CC=icc
8989
else
90-
echo "Error: Any of mpiicx, icx, mpiicc, or icc is not available on this system."
90+
echo "Error: Any of mpiicx, icx, mpiicc, or icc compiler is not available on this system."
9191
exit 1
9292
fi
9393
fi
@@ -103,7 +103,7 @@ elif [[ "$FDS_BUILD_TARGET" == *"intel"* ]]; then
103103
elif command -v icpc &> /dev/null; then
104104
CXX=icpc
105105
else
106-
echo "Error: Any of mpiicpx, icpx, mpiicpc, or icpc is not available on this system."
106+
echo "Error: Any of mpiicpx, icpx, mpiicpc, or icpc compiler is not available on this system."
107107
exit 1
108108
fi
109109
fi
@@ -115,7 +115,7 @@ elif [[ "$FDS_BUILD_TARGET" == *"intel"* ]]; then
115115
elif command -v ifort &> /dev/null; then
116116
FC=ifort
117117
else
118-
echo "Error: Any of mpiifort, or ifort is not available on this system."
118+
echo "Error: Any of mpiifort, or ifort compiler is not available on this system."
119119
exit 1
120120
fi
121121
fi
@@ -127,7 +127,7 @@ else #gnu
127127
elif command -v gcc &> /dev/null; then
128128
CC=gcc
129129
else
130-
echo "Error: Any of mpicc, gcc is not available on this system."
130+
echo "Error: Any of mpicc, gcc compiler is not available on this system."
131131
exit 1
132132
fi
133133
fi
@@ -139,7 +139,7 @@ else #gnu
139139
elif command -v g++ &> /dev/null; then
140140
CXX=g++
141141
else
142-
echo "Error: Any of mpicxx, g++ is not available on this system."
142+
echo "Error: Any of mpicxx, g++ compiler is not available on this system."
143143
exit 1
144144
fi
145145
fi
@@ -151,15 +151,15 @@ else #gnu
151151
elif command -v gfortran &> /dev/null; then
152152
FC=gfortran
153153
else
154-
echo "Error: Any of mpifort, gfortran is not available on this system."
154+
echo "Error: Any of mpifort, gfortran compiler is not available on this system."
155155
exit 1
156156
fi
157157
fi
158158
fi
159159

160-
echo "C Compiler CC=$CC"
161-
echo "C++ compiler CXX=$CXX"
162-
echo "Fortran compiler FC=$FC"
160+
echo "Third-party libs C Compiler=$CC"
161+
echo "Third-party libs C++ compiler=$CXX"
162+
echo "Third-party libs Fortran compiler=$FC"
163163

164164
export CC=$CC
165165
export CXX=$CXX

0 commit comments

Comments
 (0)