/
githubmirror
/
carbon-lang
Обзор
Документация
Войти
/
githubmirror
/
carbon-lang
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
trunk
toolchain/driver/codegen_options.cpp
28 строк
806 B
Jon Ross-Perkins
Switch to trailing returns in toolchain and related code. (#4919)
11 фев 2025, 21:11
Не верифицирован
11 фев 2025, 21:11
2fef1cb
Код
Авторство
О чём код?
// 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 #include "toolchain/driver/codegen_options.h" namespace Carbon { auto CodegenOptions::Build(CommandLine::CommandBuilder& b) -> void { b.AddStringOption( { .name = "target", .help = R"""( Select a target platform. Uses the LLVM target syntax. Also known as a "triple" for historical reasons. This corresponds to the `target` flag to Clang and accepts the same strings documented there: https://clang.llvm.org/docs/CrossCompilation.html#target-triple )""", }, [&](auto& arg_b) { arg_b.Default(host); arg_b.Set(&target); }); } } // namespace Carbon