use of com.google.devtools.build.lib.analysis.config.BuildConfiguration.Options in project bazel by bazelbuild.
the class CrosstoolConfigurationIdentifier method fromOptions.
/**
* Creates a new crosstool configuration from the given crosstool release and
* configuration options.
*/
public static CrosstoolConfigurationIdentifier fromOptions(BuildOptions buildOptions) {
Options options = buildOptions.get(BuildConfiguration.Options.class);
CppOptions cppOptions = buildOptions.get(CppOptions.class);
return new CrosstoolConfigurationIdentifier(options.cpu, cppOptions.cppCompiler, cppOptions.glibc);
}
use of com.google.devtools.build.lib.analysis.config.BuildConfiguration.Options in project bazel by bazelbuild.
the class ObjcConfigurationLoader method create.
@Override
public ObjcConfiguration create(ConfigurationEnvironment env, BuildOptions buildOptions) throws InvalidConfigurationException, InterruptedException {
Options options = buildOptions.get(BuildConfiguration.Options.class);
ObjcCommandLineOptions objcOptions = buildOptions.get(ObjcCommandLineOptions.class);
validate(objcOptions);
return new ObjcConfiguration(objcOptions, options, env.getBlazeDirectories());
}
Aggregations