mirror of
https://github.com/carbon-language/carbon-lang.git
synced 2026-09-24 21:20:11 +01:00
The explorer encoded the old runfiles layout in a string in one place that didn't get updated. This causes our instructions for running the explorer to break. The fix is at least quite simple. Fixes #3540 Fixes #3541
18 lines
634 B
C++
18 lines
634 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
|
|
|
|
#include "common/bazel_working_dir.h"
|
|
#include "explorer/main.h"
|
|
|
|
auto main(int argc, char** argv) -> int {
|
|
Carbon::SetWorkingDirForBazel();
|
|
|
|
static int static_for_main_addr;
|
|
return Carbon::ExplorerMain(
|
|
argc, argv, static_cast<void*>(&static_for_main_addr),
|
|
// This assumes execution from `bazel-bin/explorer`, either directly or
|
|
// with `bazel run`.
|
|
"explorer.runfiles/_main/explorer/data/prelude.carbon");
|
|
}
|