Lines Matching full:cc

264  * @param cc        The C compiler.
271 cc: str,
293 if cc == "clang"
300 else if cc == "gcc"
313 "\n CC=\"" +~ cc +~ "\"\n" +~
322 env.str("CC", cc), env.str("GEN_HOST", str(gen)),
335 * @param cc The C compiler.
342 cc: str,
353 configure(cflags, cc, flags, gen, long_bit);
355 hdr := "Building with `make`...\n CC=" +~ cc +~
366 io.eprint(cc +~ "generated warning(s):\n\n");
382 * @param cc The C compiler.
388 cc: str,
400 hdr := "Building with Rig...\n CC=" +~ cc +~
410 io.eprint(cc +~ "generated warning(s):\n\n");
481 * @param cc The C compiler.
488 cc: str,
510 " CC=" +~ cc +~ "\n" +~
515 build_make(cflags, cc, flags, gen, long_bit);
524 build_make(cflags, cc, flags +~ " -b", gen, long_bit);
533 build_make(cflags, cc, flags +~ " -d", gen, long_bit);
547 * @param cc The C compiler.
553 cc: str,
574 " CC=" +~ cc +~ "\n" +~
579 build_rig(cflags, cc, flags, long_bit);
588 build_rig(cflags, cc, flags +~ @[ "-Dbuild_mode=bc" ], long_bit);
597 build_rig(cflags, cc, flags +~ @[ "-Dbuild_mode=dc" ], long_bit);
612 * @param cc The C compiler.
617 cc: str,
630 run_config_tests_make(cflags, cc, flags, true, usize(64));
635 run_config_tests_make(cflags, cc, flags, false, usize(64));
639 cc, flags, true, usize(64));
646 cc, flags +~ " -e", true, usize(64));
654 cc, flags +~ " -r", true, usize(64));
658 run_config_tests_make(cflags, cc, flags, true, usize(32));
662 run_config_tests_make(cflags, cc, flags, false, usize(32));
671 * @param cc The C compiler.
676 cc: str,
689 run_config_tests_rig(cflags, cc, flags, usize(64));
692 run_config_tests_rig(cflags +~ @[ DEFOPT +~ "BC_RAND_BUILTIN=0" ], cc,
699 cc, flags +~ @[ "-Dhistory=editline" ],
707 cc, flags +~ @[ "-Dhistory=readline" ],
712 run_config_tests_rig(cflags, cc, flags, usize(32));
719 * @param cc The C compiler.
724 cc: str,
741 run_config_series_make(cflags, cc, flags +~ " " +~ line);
746 run_config_series_make(cflags, cc, flags);
754 * @param cc The C compiler.
759 cc: str,
782 run_config_series_rig(cflags, cc, flags +~ opts_list);
787 run_config_series_rig(cflags, cc, flags);
795 * @param cc The C compiler.
800 cc: str,
811 run_settings_series_make(cflags, cc, flags);
815 run_settings_series_make(cflags, cc, flags +~ " -" +~ sflag);
823 * @param cc The C compiler.
828 cc: str,
841 run_settings_series_rig(cflags, cc, flags);
851 run_settings_series_rig(cflags, cc, flags +~ opts_list);
859 * @param cc The C compiler.
864 cc: str,
873 build_make(cflags +~ " -a", cc, flags, true, usize(64));
880 build_make(cflags +~ " -a", cc, flags, true, usize(32));
892 * @param cc The C compiler.
897 cc: str,
906 build_rig(cflags, cc, flags +~ @[ "-Dbuild_mode=library" ], usize(64));
913 build_rig(cflags, cc, flags +~ @[ "-Dbuild_mode=library" ], usize(32));
925 * @param cc The C compiler.
930 cc: str,
939 run_test_series_make(cflags +~ " " +~ C99OPT, cc, flags);
943 run_test_series_make(cflags +~ " " +~ C11OPT, cc, flags);
951 * @param cc The C compiler.
956 cc: str,
965 run_test_series_rig(cflags +~ @[ C99OPT ], cc, flags);
969 run_test_series_rig(cflags +~ @[ C11OPT ], cc, flags);
1079 * @param cc The C compiler.
1082 cc: str,
1090 if cc == "clang" && sanitizers
1092 run_tests_make(DEBUG_CFLAGS_STR +~ " -fsanitize=undefined", cc, "-mg");
1096 run_tests_make(DEBUG_CFLAGS_STR, cc, "-g");
1102 * @param cc The C compiler.
1105 cc: str,
1113 run_tests_make(RELEASE_CFLAGS_STR, cc, "-O3");
1114 run_lib_tests_make(RELEASE_CFLAGS_STR, cc, "-O3");
1120 * @param cc The C compiler.
1123 cc: str,
1131 if cc == "clang" && sanitizers
1133 run_tests_make(DEBUG_CFLAGS_STR +~ " -fsanitize=address", cc, "-mgO3");
1134 run_tests_make(DEBUG_CFLAGS_STR +~ " -fsanitize=memory", cc, "-mgO3");
1138 run_tests_make(DEBUG_CFLAGS_STR, cc, "-gO3");
1141 if cc == "clang" && sanitizers
1143 run_lib_tests_make(DEBUG_CFLAGS_STR +~ " -fsanitize=address", cc,
1145 run_lib_tests_make(DEBUG_CFLAGS_STR +~ " -fsanitize=memory", cc,
1150 run_lib_tests_make(DEBUG_CFLAGS_STR, cc, "-gO3");
1156 * @param cc The C compiler.
1159 cc: str,
1167 run_tests_make(RELEASE_CFLAGS_STR, cc, "-Os");
1168 run_lib_tests_make(RELEASE_CFLAGS_STR, cc, "-Os");
1174 * @param cc The C compiler.
1177 cc: str,
1185 debug_make(cc);
1186 release_make(cc);
1187 reldebug_make(cc);
1188 minsize_make(cc);
1203 * @param cc The C compiler.
1206 cc: str,
1214 if cc == "clang" && sanitizers
1216 run_tests_rig(DEBUG_CFLAGS +~ @[ " -fsanitize=undefined" ], cc,
1221 run_tests_rig(DEBUG_CFLAGS, cc, @[ "-Ddebug=1" ]);
1227 * @param cc The C compiler.
1230 cc: str,
1238 run_tests_rig(RELEASE_CFLAGS, cc, @[ "-Doptimization=3" ]);
1239 run_lib_tests_rig(RELEASE_CFLAGS, cc, @[ "-Doptimization=3" ]);
1245 * @param cc The C compiler.
1248 cc: str,
1256 if cc == "clang" && sanitizers
1258 run_tests_rig(DEBUG_CFLAGS +~ @[ " -fsanitize=address" ], cc,
1260 run_tests_rig(DEBUG_CFLAGS +~ @[ " -fsanitize=memory" ], cc,
1265 run_tests_rig(DEBUG_CFLAGS, cc, @[ "-gO3" ]);
1268 if cc == "clang" && sanitizers
1270 run_lib_tests_rig(DEBUG_CFLAGS +~ @[ " -fsanitize=address" ], cc,
1272 run_lib_tests_rig(DEBUG_CFLAGS +~ @[ " -fsanitize=memory" ], cc,
1277 run_lib_tests_rig(DEBUG_CFLAGS, cc,
1284 * @param cc The C compiler.
1287 cc: str,
1295 run_tests_rig(RELEASE_CFLAGS, cc, @[ "-Doptimization=s" ]);
1296 run_lib_tests_rig(RELEASE_CFLAGS, cc, @[ "-Doptimization=s" ]);
1302 * @param cc The C compiler.
1305 cc: str,
1313 debug_rig(cc);
1314 release_rig(cc);
1315 reldebug_rig(cc);
1316 minsize_rig(cc);