Lines Matching +full:flang +full:- +full:build
1 # -*- Python -*-
19 config.name = "Flang"
64 # ask llvm-config about asserts
65 llvm_config.feature_config([("--assertion-mode", {"ON": "asserts"})])
70 config.available_features.add(arch.lower() + "-registered-target")
72 # To modify the default target triple for flang tests.
82 # If the flang examples are built, add examples to the config
96 "-fpass-plugin={}/Bye{}".format(
121 # On MacOS, -isysroot is needed to build binaries.
124 isysroot_flag = ["-isysroot", config.osx_sysroot]
126 # Check for DEFAULT_SYSROOT, because when it is set -isysroot has no effect.
130 # For each occurrence of a flang tool name, replace it with the full path to
131 # the build directory holding that tool.
134 "%flang",
135 command=FindTool("flang"),
141 command=FindTool("flang"),
142 extra_args=["-fc1"],
147 # Flang has several unimplemented features. TODO messages are used to mark
148 # and fail if these features are exercised. Some TODOs exit with a non-zero
150 # To catch aborts, the `--crash` option for the `not` command has to be used.
157 extra_args=["--crash"],
166 # Define some variables to help us test that the flang runtime doesn't depend on
179 config.available_features.add("c-compiler")
211 ("%openmp_flags", f"-fopenmp -J {config.openmp_module_dir}")
214 config.substitutions.append(("%openmp_flags", "-fopenmp"))
217 # %f128-lib substitution may be used to generate check prefixes
220 config.available_features.add("flang-supports-f128-math")
223 "flang-f128-math-lib-" + config.flang_runtime_f128_math_lib
226 ("%f128-lib", config.flang_runtime_f128_math_lib.upper())
229 config.substitutions.append(("%f128-lib", "NONE"))