// 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 "explorer/main.h" #include "llvm/Support/Path.h" auto main(int argc, char** argv) -> int { llvm::StringRef bin = llvm::sys::path::filename(argv[0]); if (bin == "carbon-explorer") { static int static_for_main_addr; return Carbon::ExplorerMain(argc, argv, static_cast(&static_for_main_addr), "data/prelude.carbon"); } else { fprintf(stderr, "Unrecognized Carbon binary requested: %s", argv[0]); return 1; } }