Changes in / [20b66f7:ff1efc10]
- Files:
-
- 17 edited
-
INSTALL (modified) (1 diff)
-
Jenkins/TestRegen (modified) (1 diff)
-
Jenkinsfile (modified) (3 diffs)
-
Makefile.am (modified) (1 diff)
-
Makefile.in (modified) (1 diff)
-
benchmark/Makefile.in (modified) (1 diff)
-
configure (modified) (6 diffs)
-
configure.ac (modified) (2 diffs)
-
driver/Makefile.in (modified) (1 diff)
-
libcfa/configure (modified) (1 diff)
-
libcfa/src/Makefile.in (modified) (1 diff)
-
src/Makefile.in (modified) (1 diff)
-
tests/Makefile.in (modified) (1 diff)
-
tests/preempt_longrun/Makefile.in (modified) (1 diff)
-
tools/Makefile.am (modified) (1 diff)
-
tools/Makefile.in (modified) (1 diff)
-
tools/prettyprinter/Makefile.in (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
INSTALL
r20b66f7 rff1efc10 22 22 it is important not to put quotes around the directory path; Cforall may 23 23 appear to build, but the installed version may not work properly. 24 25 --with-backend-compiler=PROGRAM specifies the installed path of gcc. It 26 defaults to the first command named 'gcc' in the current PATH. 27 28 cfa-cc itself is built with the version of g++ specified by the environment 29 variable CXX. If CXX is unset, cfa-cc is built using the first command named 30 'g++' in the current PATH. -
Jenkins/TestRegen
r20b66f7 rff1efc10 70 70 //escapes the sandbox 71 71 //Also specify the compiler by hand 72 sh "./configure CXX=clang++ CC=gcc-6 --host=${arch} --enable-silent-rules --quiet"72 sh "./configure CXX=clang++ --host=${arch} --with-backend-compiler=gcc-6 --prefix=${install_dir} --enable-silent-rules --quiet" 73 73 74 74 //Compile the project 75 sh 'make -j 8 --no-print-directory '75 sh 'make -j 8 --no-print-directory install' 76 76 77 77 //Regenerate the desired tests -
Jenkinsfile
r20b66f7 rff1efc10 114 114 } 115 115 116 sh "${SrcDir}/configure CXX=${Settings.Compiler. CXX} CC=${Settings.Compiler.CC} ${Settings.Architecture.flags} ${targets} --quiet"116 sh "${SrcDir}/configure CXX=${Settings.Compiler.cpp_cc} ${Settings.Architecture.flags} ${targets} --with-backend-compiler=${Settings.Compiler.cfa_cc} --quiet" 117 117 118 118 //Compile the project … … 235 235 //Description of a compiler (Must be serializable since pipelines are persistent) 236 236 class CC_Desc implements Serializable { 237 public String name238 public String CC239 public String CXX240 241 CC_Desc(String name, String CC, String CXX) {242 this. name =name243 this. CC = CC244 this. CXX = CXX237 public String cc_name 238 public String cpp_cc 239 public String cfa_cc 240 241 CC_Desc(String cc_name, String cpp_cc, String cfa_cc) { 242 this.cc_name = cc_name 243 this.cpp_cc = cpp_cc 244 this.cfa_cc = cfa_cc 245 245 } 246 246 } … … 309 309 310 310 def full = param.RunAllTests ? " (Full)" : "" 311 this.DescShort = "${ this.Compiler. name }:${ this.Architecture.name }${full}"312 313 this.DescLong = """Compiler : ${ this.Compiler. name } (${ this.Compiler.CXX }/${ this.Compiler.CC})311 this.DescShort = "${ this.Compiler.cc_name }:${ this.Architecture.name }${full}" 312 313 this.DescLong = """Compiler : ${ this.Compiler.cc_name } (${ this.Compiler.cpp_cc }/${ this.Compiler.cfa_cc }) 314 314 Architecture : ${ this.Architecture.name } 315 315 Arc Flags : ${ this.Architecture.flags } -
Makefile.am
r20b66f7 rff1efc10 16 16 17 17 AUTOMAKE_OPTIONS = foreign # do not require all the GNU file names 18 BACKEND_CC = @BACKEND_CC@ # C compiler used to compile Cforall programs, versus C++ compiler used to build cfa command 18 19 19 20 MAINTAINERCLEANFILES = lib/* bin/* tests/.deps/* tests/.out/* -
Makefile.in
r20b66f7 rff1efc10 252 252 AUTOMAKE = @AUTOMAKE@ 253 253 AWK = @AWK@ 254 BACKEND_CC = @BACKEND_CC@ # C compiler used to compile Cforall programs, versus C++ compiler used to build cfa command 254 255 BUILD_IN_TREE_FLAGS = @BUILD_IN_TREE_FLAGS@ 255 256 CC = @CC@ -
benchmark/Makefile.in
r20b66f7 rff1efc10 188 188 AUTOMAKE = @AUTOMAKE@ 189 189 AWK = @AWK@ 190 BACKEND_CC = @BACKEND_CC@ 190 191 BUILD_IN_TREE_FLAGS = @BUILD_IN_TREE_FLAGS@ 191 192 CC = @CC@ -
configure
r20b66f7 rff1efc10 626 626 LTLIBOBJS 627 627 LIBOBJS 628 CFA_BACKEND_CC629 628 ALLOCA 630 629 EGREP … … 688 687 CFA_INCDIR 689 688 CFA_PREFIX 689 CFA_BACKEND_CC 690 BACKEND_CC 690 691 DOendif 691 692 DOifskipcompile … … 762 763 enable_silent_rules 763 764 with_cfa_name 765 with_backend_compiler 764 766 with_target_hosts 765 767 enable_dependency_tracking … … 1421 1423 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) 1422 1424 --with-cfa-name=NAME NAME too which cfa will be installed 1425 --with-backend-compiler=PROGRAM PROGRAM that performs the final code compilation (must be gcc-compatible) 1423 1426 --with-target-hosts=HOSTS HOSTS comma seperated list of hosts to build for, format ARCH:debug|nodebug|nolib 1424 1427 … … 3163 3166 3164 3167 #============================================================================== 3168 # backend compiler implementation 3169 3170 # Check whether --with-backend-compiler was given. 3171 if test "${with_backend_compiler+set}" = set; then : 3172 withval=$with_backend_compiler; backendcompiler=$withval 3173 else 3174 backendcompiler="" 3175 fi 3176 3177 if test "x$backendcompiler" != "x"; then 3178 BACKEND_CC=${backendcompiler} 3179 else 3180 # Extract the first word of "gcc", so it can be a program name with args. 3181 set dummy gcc; ac_word=$2 3182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 3183 $as_echo_n "checking for $ac_word... " >&6; } 3184 if ${ac_cv_path_BACKEND_CC+:} false; then : 3185 $as_echo_n "(cached) " >&6 3186 else 3187 case $BACKEND_CC in 3188 [\\/]* | ?:[\\/]*) 3189 ac_cv_path_BACKEND_CC="$BACKEND_CC" # Let the user override the test with a path. 3190 ;; 3191 *) 3192 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR 3193 for as_dir in $PATH 3194 do 3195 IFS=$as_save_IFS 3196 test -z "$as_dir" && as_dir=. 3197 for ac_exec_ext in '' $ac_executable_extensions; do 3198 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then 3199 ac_cv_path_BACKEND_CC="$as_dir/$ac_word$ac_exec_ext" 3200 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 3201 break 2 3202 fi 3203 done 3204 done 3205 IFS=$as_save_IFS 3206 3207 ;; 3208 esac 3209 fi 3210 BACKEND_CC=$ac_cv_path_BACKEND_CC 3211 if test -n "$BACKEND_CC"; then 3212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BACKEND_CC" >&5 3213 $as_echo "$BACKEND_CC" >&6; } 3214 else 3215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 3216 $as_echo "no" >&6; } 3217 fi 3218 3219 # check gcc installed 3220 if test "x$BACKEND_CC" = "x"; then 3221 as_fn_error $? "some version of gcc is needed. Get it at ftp://ftp.gnu.org" "$LINENO" 5 3222 exit 1 3223 fi 3224 fi 3225 3226 cat >>confdefs.h <<_ACEOF 3227 #define CFA_BACKEND_CC "${BACKEND_CC}" 3228 _ACEOF 3229 3230 3231 3232 #============================================================================== 3165 3233 # Installation paths 3166 3234 … … 6313 6381 fi 6314 6382 done 6315 6316 6317 #==============================================================================6318 # backend compiler implementation6319 6320 cat >>confdefs.h <<_ACEOF6321 #define CFA_BACKEND_CC "${CC}"6322 _ACEOF6323 6324 6383 6325 6384 -
configure.ac
r20b66f7 rff1efc10 55 55 AC_SUBST([DOendif]) 56 56 AM_SUBST_NOTMAKE([DOendif]) 57 58 #============================================================================== 59 # backend compiler implementation 60 AC_ARG_WITH(backend-compiler, 61 [ --with-backend-compiler=PROGRAM PROGRAM that performs the final code compilation (must be gcc-compatible) ], 62 backendcompiler=$withval, backendcompiler="") 63 if test "x$backendcompiler" != "x"; then 64 BACKEND_CC=${backendcompiler} 65 else 66 AC_PATH_PROG(BACKEND_CC, gcc, []) # check gcc installed 67 if test "x$BACKEND_CC" = "x"; then 68 AC_MSG_ERROR(some version of gcc is needed. Get it at ftp://ftp.gnu.org) 69 exit 1 70 fi 71 fi 72 AC_DEFINE_UNQUOTED(CFA_BACKEND_CC, "${BACKEND_CC}", [Location of include files.]) 73 AC_SUBST(CFA_BACKEND_CC) 57 74 58 75 #============================================================================== … … 211 228 212 229 #============================================================================== 213 # backend compiler implementation214 AC_DEFINE_UNQUOTED(CFA_BACKEND_CC, "${CC}", [Backend compiler to use.])215 AC_SUBST(CFA_BACKEND_CC)216 217 #==============================================================================218 230 AC_CONFIG_FILES([ 219 231 Makefile -
driver/Makefile.in
r20b66f7 rff1efc10 181 181 AUTOMAKE = @AUTOMAKE@ 182 182 AWK = @AWK@ 183 BACKEND_CC = @BACKEND_CC@ 183 184 BUILD_IN_TREE_FLAGS = @BUILD_IN_TREE_FLAGS@ 184 185 CC = @CC@ -
libcfa/configure
r20b66f7 rff1efc10 2970 2970 CONFIG_CFAFLAGS="-nodebug" 2971 2971 CONFIG_BUILDLIB="no" 2972 ;;2973 *)2974 as_fn_error $? "'Invalid value $CONFIGURATION for \$CONFIGURATION'" "$LINENO" 52975 2972 ;; 2976 2973 esac -
libcfa/src/Makefile.in
r20b66f7 rff1efc10 922 922 $(libobjs) : @CFACC@ @CFACPP@ prelude.cfa 923 923 924 -include $(libdeps) 924 include $(libdeps) 925 926 $(libdeps): 927 @mkdir -p $(dir $@) 928 @echo '#dummy' > $@ 925 929 926 930 prelude.o : prelude.cfa extras.cf gcc-builtins.cf builtins.cf @CFACC@ @CFACPP@ -
src/Makefile.in
r20b66f7 rff1efc10 395 395 AUTOMAKE = @AUTOMAKE@ 396 396 AWK = @AWK@ 397 BACKEND_CC = @BACKEND_CC@ 397 398 BUILD_IN_TREE_FLAGS = @BUILD_IN_TREE_FLAGS@ 398 399 CC = @CC@ -
tests/Makefile.in
r20b66f7 rff1efc10 176 176 AUTOMAKE = @AUTOMAKE@ 177 177 AWK = @AWK@ 178 BACKEND_CC = @BACKEND_CC@ 178 179 BUILD_IN_TREE_FLAGS = @BUILD_IN_TREE_FLAGS@ 179 180 CC = @CFACC@ -
tests/preempt_longrun/Makefile.in
r20b66f7 rff1efc10 337 337 AUTOMAKE = @AUTOMAKE@ 338 338 AWK = @AWK@ 339 BACKEND_CC = @BACKEND_CC@ 339 340 BUILD_IN_TREE_FLAGS = @BUILD_IN_TREE_FLAGS@ 340 341 CC = @CFACC@ -
tools/Makefile.am
r20b66f7 rff1efc10 17 17 AUTOMAKE_OPTIONS = foreign # do not require all the GNU file names 18 18 19 CC = @BACKEND_CC@ 19 20 AM_CFLAGS = -Wall -Wextra -O2 -g 20 21 -
tools/Makefile.in
r20b66f7 rff1efc10 186 186 AUTOMAKE = @AUTOMAKE@ 187 187 AWK = @AWK@ 188 BACKEND_CC = @BACKEND_CC@ 188 189 BUILD_IN_TREE_FLAGS = @BUILD_IN_TREE_FLAGS@ 189 CC = @ CC@190 CC = @BACKEND_CC@ 190 191 CCAS = @CCAS@ 191 192 CCASDEPMODE = @CCASDEPMODE@ -
tools/prettyprinter/Makefile.in
r20b66f7 rff1efc10 210 210 AUTOMAKE = @AUTOMAKE@ 211 211 AWK = @AWK@ 212 BACKEND_CC = @BACKEND_CC@ 212 213 BUILD_IN_TREE_FLAGS = @BUILD_IN_TREE_FLAGS@ 213 214 CC = @CC@
Note:
See TracChangeset
for help on using the changeset viewer.