about summary refs log tree commit diff
path: root/library/compiler-builtins/crates/musl-math-sys/c_patches/alias.c
diff options
context:
space:
mode:
authorTrevor Gross <tmgross@umich.edu>2025-05-20 13:31:31 +0000
committerTrevor Gross <tmgross@umich.edu>2025-06-02 23:59:11 +0000
commitaff21f659f5abeba49b05368affd8c829807b1f1 (patch)
treefa34b0095c6dade90ddffc654c9e7a2f63002d5c /library/compiler-builtins/crates/musl-math-sys/c_patches/alias.c
parentd655ff0806623fb00ca518eae88655ccbfda76df (diff)
downloadrust-aff21f659f5abeba49b05368affd8c829807b1f1.tar.gz
rust-aff21f659f5abeba49b05368affd8c829807b1f1.zip
compiler-builtins: Eliminate symlinks
compiler-builtins has a symlink to the `libm` source directory so the
two crates can share files but still act as two separate crates. This
causes problems with some sysroot-related tooling, however, since
directory symlinks seem to not be supported.

The reason this was a symlink in the first place is that there isn't an
easy for Cargo to publish two crates that share source (building works
fine but publishing rejects `include`d files from parent directories, as
well as nested package roots). However, after the switch to a subtree,
we no longer need to publish compiler-builtins; this means that we can
eliminate the link and just use `#[path]`.

Similarly, the LICENSE file was symlinked so it could live in the
repository root but be included in the package. This is also removed as
it caused problems with the dist job (error from bootstrap's
`tarball.rs`, "generated a symlink in a tarball").

If we need to publish compiler-builtins again for any reason, it would
be easy to revert these changes in a preprocess step.
Diffstat (limited to 'library/compiler-builtins/crates/musl-math-sys/c_patches/alias.c')
0 files changed, 0 insertions, 0 deletions