mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-09-24 19:10:14 +01:00
1) toolchain and explorer use the same working dir logic, share it 2) explorer's carbon.cpp and main_bin.cpp use the same relative path logic, share it 3) You can append a longer path in one call with the right kind of iterator 4) Fix what's maybe a bug in passing `relative_prelude_path.str()` to `cl::init` 5) Collapse Main and ExplorerMain to avoid passing more parameters between
20 lines
615 B
C++
20 lines
615 B
C++
// 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_EXPLORER_MAIN_H_
|
|
#define CARBON_EXPLORER_MAIN_H_
|
|
|
|
#include "llvm/ADT/StringRef.h"
|
|
|
|
namespace Carbon {
|
|
|
|
// Runs explorer. relative_prelude_path must be POSIX-style, not native, and
|
|
// will be translated to native.
|
|
auto ExplorerMain(int argc, char** argv, void* static_for_main_addr,
|
|
llvm::StringRef relative_prelude_path) -> int;
|
|
|
|
} // namespace Carbon
|
|
|
|
#endif // CARBON_EXPLORER_MAIN_H_
|