Codebase list cppad / 15d0ecc
cpp11: check_all and run_cmake: convert c++98 -> c++11. Brad Bell 3 years ago
2 changed file(s) with 11 addition(s) and 30 deletion(s). Raw diff Collapse all Expand all
119119 compiler='--clang'
120120 fi
121121 #
122 # Prefer c-11 standard
122 # Prefer c-17 standard
123123 random_01 standard
124124 if [ "$random_01_standard" == '0' ]
125125 then
126126 random_01 standard
127127 if [ "$random_01_standard" == '0' ]
128128 then
129 standard='--c++98 --no_adolc --no_sacado --no_cppadcg'
130 else
131 standard='--c++11'
132 fi
133 else
134 standard='--c++11'
129 standard='--c++11 --no_adolc --no_sacado --no_cppadcg'
130 else
131 standard='--c++17'
132 fi
133 else
134 standard='--c++17'
135135 fi
136136 #
137137 if [ "$build_type" == 'debug' ]
182182 then
183183 compiler=''
184184 fi
185 if [ "$standard" == '--c++11' ]
185 if [ "$standard" == '--c++17' ]
186186 then
187187 standard='' # default for run_cmake.sh
188188 fi
3737 # -----------------------------------------------------------------------------
3838 addr_t_size_t='no'
3939 verbose='no'
40 standard='c++11'
40 standard='c++17'
4141 profile_speed='no'
4242 clang='no'
4343 yes_adolc='yes'
9090 verbose='yes'
9191 ;;
9292
93 --c++98)
94 standard='c++98'
93 --c++11)
94 standard='c++11'
9595 ;;
9696
9797 --profile_speed)
176176 esac
177177 shift
178178 done
179 # ---------------------------------------------------------------------------
180 if [ "$standard" == 'c++98' ]
181 then
182 if [ "$yes_adolc" == 'yes' ]
183 then
184 echo 'run_cmake.sh: --no_adolc required when --c++98 present'
185 exit 1
186 fi
187 if [ "$yes_sacado" == 'yes' ]
188 then
189 echo 'run_cmake.sh: --no_sacado required when --c++98 present'
190 exit 1
191 fi
192 if [ "$yes_cppadcg" == 'yes' ]
193 then
194 echo 'run_cmake.sh: --no_cppadcg required when --c++98 present'
195 exit 1
196 fi
197 fi
198179 # ---------------------------------------------------------------------------
199180 if [ ! -e build ]
200181 then