bazel icon indicating copy to clipboard operation
bazel copied to clipboard

Document CROSSTOOL

Open hanwen opened this issue 11 years ago • 9 comments

The entire crosstool format is probably too hairy, but we should definitely have examples how to configure embedded toolchains.

hanwen avatar Mar 25 '15 16:03 hanwen

Assigning to myself as I designed the original crosstool format. But any help is appreciated.

ulfjack avatar Apr 07 '15 12:04 ulfjack

there are some examples on

https://github.com/google/bazel-examples

hanwen avatar May 11 '15 15:05 hanwen

the best documentation currently is the included CROSSTOOL

https://github.com/bazelbuild/bazel/blob/master/tools/cpp/CROSSTOOL

together with the proto definition,

https://github.com/bazelbuild/bazel/blob/master/src/main/protobuf/crosstool_config.proto

hanwen avatar Jan 19 '16 14:01 hanwen

Perhaps let's add a brief definition of what the CROSSTOOL file is and what it is used for in the documentation on bazel.io? There are mentions of CROSSTOOL on the site but I don't think we ever explain what it is anywhere.

davidzchen avatar Jan 22 '16 07:01 davidzchen

internal ref: b/19928718

damienmg avatar May 19 '16 20:05 damienmg

Note that there are now two wiki pages:

What the CROSSTOOL is and How to use a custom toolchain.

kchodorow avatar May 19 '16 20:05 kchodorow

Thanks! This is very helpful.

hhclam avatar May 20 '16 03:05 hhclam

FWIW I discovered we have an extensive documentation internally, we should maybe make it publicly available.

damienmg avatar Jun 14 '16 15:06 damienmg

So I checked the internal documentation and it's roughly on par with the public facing one. We will most definitely update the documentation after making CROSSTOOL more expressive and simpler in 2017, but that kind of goes without saying. So let me close this issue for now.

hlopko avatar Dec 02 '16 10:12 hlopko