Repository navigation
feat(core): single GNU response-file tokenizer and Phase 0 classifier tests (#179) - #183
Merged
Merged
Conversation
… tests (#179) Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
9 of 31 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #179
reld now reads GNU
@fileresponse files with one tokenizer, and the four Phase 0 classifier tests from #123 are added.What changed
args/response_file.rs):tokenize_gnufollows LLVM'scl::TokenizeGNUCommandLine.args.rs):read_args_from_filenow callstokenize_gnu, and the oldarguments_from_stringparser is deleted. The only change inargs/elf.rsis removing that parser's test.bridge.rs): ELF@files are tokenized the same way for routing, the invocation log and the expansion handed to lld. COFF and Mach-O response files keep their own UTF-16-aware splitter./LTCGand/GLspellings are still matched case-insensitively.@files, and a stderr note lists what was removed.response_file_quoting_matches_on_native_and_classifier_pathsclassifier_is_case_sensitivestatic_group_flags_stay_nativeplugin_opt_and_bitcode_route_to_lldreld_only_flags_never_reach_childstripped_reld_only_flags_are_droppedtokenize_gnu_follows_llvm_gnu_quotingresponse-file-quoting.shmoved from the unsupported-options group to the ignore group. The quoted@filenow parses natively. The test still fails, but only on its error-message check: it grepscannot open foobar:, and reld printsFailed to open input file `foobar`.Validation
cargo fmt --all -- --checkandcargo clippy --workspace --all-targets -- -D warnings: clean.cargo test -p reld-core --lib: 223 passed.cargo test -p reld-core --lib -- args::response_file bridge::tests: 56 passed, including all new tests.response-file-quoting.sh:command failed: 19: grep 'cannot open foobar:'. Both@filelinks before that step succeed.rpath.sh,sframe.sh,trace.shandweak-export-dso2.sh.act -W .github/workflows/ci.yml -j phase1-native --matrix kind:linux-gnu -P ubuntu-24.04=catthehacker/ubuntu:act-24.04 --pull=false --action-offline-modegave Job succeeded. In that run, the reld-core lib tests passed 223, the Linux acceptance tests passed 239 (0 failed, 621 ignored) and the mold corpus passed 406 (0 failed, 1 ignored).🤖 Generated with Claude Code