Lines Matching defs:cc
20 def clang_has_option(cc: str, cc_args: list[str], src_feature_tests: str, option: str) -> bool:
24 cc: The compiler executable.
37 cmd = [cc] + cc_args + [
50 def filter_clang_options(cc: str, cc_args: list[str], src_feature_tests: str) -> None:
54 cc: The compiler executable.
80 if not clang_has_option(cc, cc_args, src_feature_tests, option):
133 cc = cc_tokens[0]
139 [cc, "-v"], stderr=subprocess.PIPE, stdout=subprocess.DEVNULL, check=False
143 raise RuntimeError(f"Failed to execute compiler '{cc}': {e}") from e
150 filter_clang_options(cc, cc_args, src_feature_tests)
162 cc, cc_args, src_feature_tests, "-Wno-cast-function-type-mismatch"