/
githubmirror
/
carbon-lang
Обзор
Документация
Войти
/
githubmirror
/
carbon-lang
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
trunk
toolchain/driver/codegen_options.h
26 строк
768 B
Jon Ross-Perkins
Extract subcommand options from the driver file. (#4300)
13 сен 2024, 19:17
Не верифицирован
13 сен 2024, 19:17
1b956e6
Код
Авторство
О чём код?
// Part of the Carbon Language project, under the Apache License v2.0 with LLVM // Exceptions. See /LICENSE for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception #ifndef CARBON_TOOLCHAIN_DRIVER_CODEGEN_OPTIONS_H_ #define CARBON_TOOLCHAIN_DRIVER_CODEGEN_OPTIONS_H_ #include "common/command_line.h" #include "llvm/ADT/StringRef.h" #include "llvm/TargetParser/Host.h" namespace Carbon { // Shared codegen-related options. // // See the implementation of `Build` for documentation on members. struct CodegenOptions { auto Build(CommandLine::CommandBuilder& b) -> void; std::string host = llvm::sys::getDefaultTargetTriple(); llvm::StringRef target; }; } // namespace Carbon #endif // CARBON_TOOLCHAIN_DRIVER_CODEGEN_OPTIONS_H_