Files
carbon-lang/installers/local
Jon Ross-Perkins 0b9bda10b7 Refactor common main logic (#2260)
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
2022-10-05 17:34:04 -07:00
..
2022-07-21 19:41:39 -07:00
2022-10-05 17:34:04 -07:00
2022-04-14 10:53:46 -07:00
2022-07-19 17:00:30 -04:00
2022-04-14 10:53:46 -07:00

Local installer

This installs carbon-explorer locally for experimental use on Mac/Linux. It's not recommended for most users. Bear in mind that Carbon Language is experimental and still has no compiler. See our project status for more information.

To install to /usr, run:

bazel run -c opt //installers/local:install

To use a custom install path, run:

bazel run -c opt //installers/local:install \
  --//installers/local:install_path=/my/path

To uninstall, run:

bazel run //installers/local:uninstall

The build mode is important for installs, as debug versions may be installed. It is not relevant for uninstalls.

If a custom install path is passed to :install, the same should be passed to :uninstall.

Note this is just scripting paths: it's not intended to be a full-fledged install.