Skip to content

Conversation

@androm3da
Copy link
Contributor

Fixes the run-make test framework to use target-specific library linking instead of host-based detection. Previously, tests for hexagon targets failed because the framework used uname() to detect libraries to link, which returned Linux libraries (-lm -lrt -ldl -lpthread) that don't exist on all hexagon targets.

  • Use target() instead of uname() to detect cross-compilation targets
  • Add hexagon-specific library configuration (-lunwind -lclang_rt.builtins-hexagon)
  • Maintain backward compatibility for host-native compilation

This enables hexagon tests to compile and link successfully with the appropriate runtime libraries for the hexagon platform.

@rustbot
Copy link
Collaborator

rustbot commented Dec 15, 2025

The run-make-support library was changed

cc @jieyouxu

@rustbot rustbot added A-run-make Area: port run-make Makefiles to rmake.rs S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Dec 15, 2025
@rustbot
Copy link
Collaborator

rustbot commented Dec 15, 2025

r? @jieyouxu

rustbot has assigned @jieyouxu.
They will have a look at your PR within the next two weeks and either review your PR or reassign to another reviewer.

Use r? to explicitly pick a reviewer

@rustbot

This comment has been minimized.

Fixes the run-make test framework to use target-specific library linking
instead of host-based detection. Previously, tests for hexagon targets
failed because the framework used uname() to detect libraries to link,
which returned Linux libraries (-lm -lrt -ldl -lpthread) that don't
exist on all hexagon targets.

- Use target() instead of uname() to detect cross-compilation targets
- Add hexagon-specific library configuration (-lunwind -lclang_rt.builtins-hexagon)
- Maintain backward compatibility for host-native compilation

This enables hexagon tests to compile and link successfully with the
appropriate runtime libraries for the hexagon platform.
@androm3da androm3da force-pushed the bcain/make_test_linkage branch from dc68311 to bf9a874 Compare December 15, 2025 01:52
@rustbot
Copy link
Collaborator

rustbot commented Dec 15, 2025

This PR was rebased onto a different main commit. Here's a range-diff highlighting what actually changed.

Rebasing is a normal part of keeping PRs up to date, so no action is needed—this note is just to help reviewers.

Copy link
Member

@jieyouxu jieyouxu left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jieyouxu
Copy link
Member

@bors r+ rollup

@bors
Copy link
Collaborator

bors commented Dec 15, 2025

📌 Commit bf9a874 has been approved by jieyouxu

It is now in the queue for this repository.

@bors bors added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Dec 15, 2025
bors added a commit that referenced this pull request Dec 15, 2025
Rollup of 7 pull requests

Successful merges:

 - #149744 (test: update duplicate many_digits test to use f64 instead of f32)
 - #149946 (mir_build: Move and rename code for partitioning match candidates)
 - #149987 (Move ambient cdb discovery from compiletest to bootstrap)
 - #149990 (Improve amdgpu docs: Mention device-libs and xnack)
 - #149994 (Allow vector types for amdgpu)
 - #149997 (Link POSIX instead of Linux manual for Instant)
 - #150010 (Correct library linking for hexagon targets in run-make tests)

r? `@ghost`
`@rustbot` modify labels: rollup
@bors bors merged commit fa52c96 into rust-lang:main Dec 15, 2025
11 checks passed
rust-timer added a commit that referenced this pull request Dec 15, 2025
Rollup merge of #150010 - androm3da:bcain/make_test_linkage, r=jieyouxu

Correct library linking for hexagon targets in run-make tests

Fixes the run-make test framework to use target-specific library linking instead of host-based detection. Previously, tests for hexagon targets failed because the framework used uname() to detect libraries to link, which returned Linux libraries (-lm -lrt -ldl -lpthread) that don't exist on all hexagon targets.

- Use target() instead of uname() to detect cross-compilation targets
- Add hexagon-specific library configuration (-lunwind -lclang_rt.builtins-hexagon)
- Maintain backward compatibility for host-native compilation

This enables hexagon tests to compile and link successfully with the appropriate runtime libraries for the hexagon platform.
@rustbot rustbot added this to the 1.94.0 milestone Dec 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

A-run-make Area: port run-make Makefiles to rmake.rs S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants