-
Notifications
You must be signed in to change notification settings - Fork 608
Unbreak build_size_test.sh on Mac #12089
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
Stack from ghstack (oldest at bottom): |
🔗 Helpful Links🧪 See artifacts and rendered test results at hud.pytorch.org/pr/pytorch/executorch/12089
Note: Links to docs will display an error until the docs builds have been completed. ❌ 2 New Failures, 7 Pending, 1 Unrelated FailureAs of commit 665c8f0 with merge base cf0bfd2 ( NEW FAILURES - The following jobs have failed:
BROKEN TRUNK - The following job failed but were present on the merge base:👉 Rebase onto the `viable/strict` branch to avoid these failures
This comment was automatically generated by Dr. CI and updates every 15 minutes. |
By accidentally fixing the code in test/build_size_test.sh to correctly detect release builds (EQUAL is for numbers; you need STREQUAL for strings), #12045 broke that script on Mac because `--gc-sections` is not a valid linker flag there. This PR creates a general utility function for stripping dead code in linker flags and uses it everywhere we currently set `--gc-sections`. ghstack-source-id: 58a2fd2 ghstack-comment-id: 3014707984 Pull-Request-resolved: #12089
a3f0bf7
to
665c8f0
Compare
For low level build stuff, let's add |
Fix llava test target cmake #12089 had a typo
I didn't realize this failure showed up on CI somewhere; I noticed because I was running the script locally. I thought that we only ran size tests on Linux. |
By accidentally fixing the code in test/build_size_test.sh to correctly detect release builds (EQUAL is for numbers; you need STREQUAL for strings), #12045 broke that script on Mac because
--gc-sections
is not a valid linker flag there. This PR creates a general utility function for stripping dead code in linker flags and uses it everywhere we currently set--gc-sections
.