David Tolnay
eed38691e2
Switch to buck2's system toolchains
2022-12-15 14:41:07 -08:00
David Tolnay
49e4e65dd3
Pull buck2 prelude from buck2-prelude repo
2022-12-15 11:23:39 -08:00
David Tolnay
9a3f8d8e0f
Check reindeer-generated BUCK file in CI
2022-12-15 11:17:52 -08:00
David Tolnay
31f5b97eee
Update ui test suite to nightly-2022-12-12
2022-12-11 18:48:16 -08:00
David Tolnay
62228de09a
Pull in update of buck2 prelude
2022-12-08 18:18:37 -08:00
David Tolnay
665d913e12
Sort attributes of CxxToolchainInfo
2022-12-08 18:17:54 -08:00
David Tolnay
22d0c8e305
Explicitly no default edition during buck2 build
2022-12-06 17:24:49 -08:00
David Tolnay
29674ae7f2
Format toolchain.bzl with buildifier
2022-12-06 17:23:26 -08:00
David Tolnay
2194551012
Match c++ toolchain's declaration of runnable commands
2022-12-06 17:23:01 -08:00
David Tolnay
6dcd9971ec
Rustdoc works in buck2, but needs extern-html-root-url
2022-12-06 16:59:46 -08:00
David Tolnay
89827822ea
Buck2 now supports stable rustc
2022-12-06 16:23:25 -08:00
David Tolnay
c9d04395b3
Touch up toolchain definition
2022-12-05 13:35:09 -08:00
David Tolnay
2d337cc4d6
Wire up a buck2 failure_filter
2022-12-05 13:04:15 -08:00
David Tolnay
8bf38e39d6
Delete empty lists from toolchain args that can now be omitted
2022-12-05 12:05:19 -08:00
David Tolnay
322b803a5e
Bump Bazel build to rustc 1.65.0
2022-12-03 11:03:10 -08:00
David Tolnay
83b7d597cf
Run test suite in the buck2 CI job
...
`buck2 test` isn't available yet in the open source version of buck2,
but this workaround is sufficient for cxx.
2022-12-03 11:02:33 -08:00
David Tolnay
210ea94271
Reconcile inconsistent crate features between bazel and generated buck targets
2022-12-03 00:18:13 -08:00
David Tolnay
4d70bead83
Suppress warnings in third-party crates just like Cargo does
2022-12-03 00:10:42 -08:00
David Tolnay
7fbccc5ad6
Fix editions of some Bazel third-party deps
2022-12-03 00:06:26 -08:00
David Tolnay
6e8a402b64
Merge pull request #1142 from dtolnay/reindeer
...
Generate third-party BUCK targets using reindeer
2022-12-02 23:57:14 -08:00
David Tolnay
35409c311f
Generate third-party BUCK targets using reindeer
2022-12-02 23:50:04 -08:00
David Tolnay
8f50570e80
Hide buck2 submodule from bazel
...
Otherwise `bazel build ...` gets tripped up.
ERROR: error loading package 'tools/buck/buck2/examples/no_prelude/go/binary-toolchain': cannot load '//:rules.bzl': no such file
ERROR: error loading package 'tools/buck/buck2/examples/no_prelude/rust/rustc': cannot load '//:rules.bzl': no such file
ERROR: error loading package 'tools/buck/buck2/examples/prelude/cpp/library': Unable to find package for @prelude//rules.bzl:rules.bzl: The repository '@prelude' could not be resolved: Repository '@prelude' is not defined.
ERROR: error loading package 'tools/buck/buck2/examples/prelude/python/library': Unable to find package for @prelude//rules.bzl:rules.bzl: The repository '@prelude' could not be resolved: Repository '@prelude' is not defined.
INFO: Elapsed time: 0.167s
INFO: 0 processes.
FAILED: Build did NOT complete successfully (0 packages loaded)
2022-12-02 23:14:08 -08:00
David Tolnay
77d9eda191
Bump Bazel build to rustc 1.64.0
2022-12-02 23:13:52 -08:00
David Tolnay
4d6a99988a
Merge pull request #1141 from dtolnay/vendor
...
Reduce the set of crates that get vendored
2022-12-02 23:13:09 -08:00
David Tolnay
5f275bc40e
Reduce the set of crates that get vendored
...
Before:
adler-1.0.2 libc-0.2.137 serde_json-1.0.89
bitflags-1.3.2 link-cplusplus-1.0.7 strsim-0.10.0
cc-1.0.77 memmap-0.7.0 syn-1.0.105
cfg-if-1.0.0 miniz_oxide-0.6.2 termcolor-1.1.3
clang-ast-0.1.9 once_cell-1.16.0 toml-0.5.9
clap-4.0.29 os_str_bytes-6.4.1 trybuild-1.0.72
clap_lex-0.3.0 pkg-config-0.3.26 unicode-ident-1.0.5
codespan-reporting-0.11.1 proc-macro2-1.0.47 unicode-width-0.1.10
crc32fast-1.3.2 quote-1.0.21 winapi-0.3.9
dissimilar-1.0.4 rustversion-1.0.9 winapi-i686-pc-windows-gnu-0.4.0
flate2-1.0.25 ryu-1.0.11 winapi-util-0.1.5
glob-0.3.0 scratch-1.0.2 winapi-x86_64-pc-windows-gnu-0.4.0
itoa-1.0.4 serde-1.0.148
jobserver-0.1.25 serde_derive-1.0.148
After:
bitflags-1.3.2 os_str_bytes-6.4.1 unicode-ident-1.0.5
cc-1.0.77 proc-macro2-1.0.47 unicode-width-0.1.10
clap-4.0.29 quote-1.0.21 winapi-0.3.9
clap_lex-0.3.0 scratch-1.0.2 winapi-i686-pc-windows-gnu-0.4.0
codespan-reporting-0.11.1 syn-1.0.105 winapi-util-0.1.5
once_cell-1.16.0 termcolor-1.1.3 winapi-x86_64-pc-windows-gnu-0.4.0
2022-12-02 22:57:32 -08:00
David Tolnay
340f0ba52a
Release 1.0.83
2022-12-02 17:13:59 -08:00
David Tolnay
9bf141db24
Lockfile update
2022-12-02 17:13:19 -08:00
David Tolnay
3b423fe39b
Merge pull request #1140 from dtolnay/eastconst
...
Adopt east const in generated code to avoid ambiguities
2022-12-02 17:11:33 -08:00
David Tolnay
5e404f04a7
Adopt east const in generated code to avoid ambiguities
2022-12-02 17:01:31 -08:00
David Tolnay
a894a694a2
Align reference ampersand consistently in generated code
2022-12-02 16:56:31 -08:00
David Tolnay
9a99bc642b
Merge pull request #1138 from dtolnay/buck2
...
Add buck2 CI
2022-12-01 22:35:45 -08:00
David Tolnay
dcbc8773d5
Add buck2 CI
2022-12-01 22:28:47 -08:00
David Tolnay
8e5e1f590e
Delete buck1 build from CI
...
This job began failing today due to some GitHub Actions change. We'll be
replacing it with a buck2 build shortly anyway so it's not worth
debugging now.
Traceback (most recent call last):
File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.10/runpy.py", line 86, in _run_code
exec(code, run_globals)
File "/home/runner/work/cxx/cxx/bin/buck/__main__.py", line 25, in <module>
File "/home/runner/work/cxx/cxx/bin/buck/.bootstrap/_pex/pex_bootstrapper.py", line 92, in bootstrap_pex
File "/home/runner/work/cxx/cxx/bin/buck/.bootstrap/_pex/finders.py", line 22, in <module>
File "/home/runner/work/cxx/cxx/bin/buck/.bootstrap/pkg_resources/__init__.py", line 32, in <module>
ModuleNotFoundError: No module named 'symbol'
2022-11-30 19:16:20 -08:00
David Tolnay
3cc9f6bf94
Timeout for book deploy
2022-11-24 09:18:32 -08:00
David Tolnay
1be11d6288
Time out workflows after 45 minutes
...
GitHub's default timeout is 6 hours. Recently some of my GitHub Actions
jobs have started randomly stalling for that long, which is inconvenient
because it ties up a chunk of my runner quota. It appears to be very
rare for a job to recover after stalling. It's better to time out
quicker and retry on a different runner.
2022-11-24 09:13:56 -08:00
David Tolnay
cc06082ad6
Bump Bazel build to rustc 1.63.0
2022-11-24 09:10:21 -08:00
David Tolnay
513371edca
Release 1.0.82
2022-11-18 01:23:30 -08:00
David Tolnay
3cdabff94e
Bump Bazel build to rustc 1.62.0
2022-11-18 01:22:33 -08:00
David Tolnay
090e76efdb
Merge pull request #1135 from dtolnay/doxygen
...
Doxygen comments
2022-11-18 01:22:18 -08:00
David Tolnay
883ef31f75
Ensure Doxygen comments have at least 2 lines to be recognized
2022-11-18 01:15:23 -08:00
David Tolnay
ac65507e78
Add doxygen option to cxx_build::CFG
2022-11-18 01:15:23 -08:00
David Tolnay
a628611897
Add option to emit C++ comments as ///
2022-11-18 01:14:55 -08:00
David Tolnay
c16f037b8a
Bump Bazel build to rustc 1.61.0
2022-11-18 01:10:10 -08:00
David Tolnay
92bc299460
Lockfile update
2022-11-18 01:07:51 -08:00
David Tolnay
159b85b904
Make types in CFG documentation show better in dark theme
2022-11-18 00:34:20 -08:00
David Tolnay
cdd735afb3
Move Cfg destructuring out of the conditional if-let part
2022-11-18 00:21:55 -08:00
David Tolnay
f908cfa123
Exhaustively handle fields in Drop for Cfg
...
This way it's no longer possible to forget to update this code when
adding new configuration fields into CFG.
2022-11-18 00:19:50 -08:00
David Tolnay
5b39d5eb25
Merge pull request #1134 from dtolnay/writedoc
...
Extract a function for writing docs in generated C++
2022-11-18 00:14:22 -08:00
David Tolnay
75c0454f1d
Extract a function for writing docs in generated C++
2022-11-18 00:04:55 -08:00
David Tolnay
a3030a0460
Update ui test suite to nightly-2022-11-16
2022-11-15 19:07:35 -08:00