You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Build/Scripts/set_thirdparty_compilers.sh
+22-22Lines changed: 22 additions & 22 deletions
Original file line number
Diff line number
Diff line change
@@ -1,35 +1,35 @@
1
1
echo"FDS build target = $FDS_BUILD_TARGET"
2
2
3
3
# 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
5
5
set_CC=0
6
6
set_CXX=0
7
7
set_FC=0
8
8
9
-
if [ -n"$FIREMODELS_CC" ];then
10
-
CC=$FIREMODELS_CC
9
+
if [ -n"$FIREMODELS_LIBS_CC" ];then
10
+
CC=$FIREMODELS_LIBS_CC
11
11
ifcommand -v $CC&> /dev/null;then
12
12
set_CC=1
13
13
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."
15
15
fi
16
16
fi
17
17
18
-
if [ -n"$FIREMODELS_CXX" ];then
19
-
CXX=$FIREMODELS_CXX
18
+
if [ -n"$FIREMODELS_LIBS_CXX" ];then
19
+
CXX=$FIREMODELS_LIBS_CXX
20
20
ifcommand -v $CXX&> /dev/null;then
21
21
set_CXX=1
22
22
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."
24
24
fi
25
25
fi
26
26
27
-
if [ -n"$FIREMODELS_FC" ];then
28
-
FC=$FIREMODELS_FC
27
+
if [ -n"$FIREMODELS_LIBS_FC" ];then
28
+
FC=$FIREMODELS_LIBS_FC
29
29
ifcommand -v $FC&> /dev/null;then
30
30
set_FC=1
31
31
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."
33
33
fi
34
34
fi
35
35
@@ -44,7 +44,7 @@ if [[ "$FDS_BUILD_TARGET" == *"osx"* ]]; then
44
44
elifcommand -v gcc &> /dev/null;then
45
45
CC=gcc
46
46
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."
48
48
exit 1
49
49
fi
50
50
fi
@@ -58,7 +58,7 @@ if [[ "$FDS_BUILD_TARGET" == *"osx"* ]]; then
58
58
elifcommand -v g++ &> /dev/null;then
59
59
CXX=g++
60
60
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."
62
62
exit 1
63
63
fi
64
64
fi
@@ -70,7 +70,7 @@ if [[ "$FDS_BUILD_TARGET" == *"osx"* ]]; then
70
70
elifcommand -v gfortran &> /dev/null;then
71
71
FC=gfortran
72
72
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."
0 commit comments