Skip to content

build: a compile_asm_object target takes no argument or one triple=<llvm-triple>; anything else is refused (#969) - #2707

Merged
ehartford merged 1 commit into
fix-970from
fix-969
Oct 26, 2026
Merged

ehartford merged 1 commit into
fix-970from
fix-969

Conversation

@ehartford

@ehartford ehartford commented Oct 26, 2026 •

Copy link
Copy Markdown
Contributor

Root cause: build_graph_assemble_to_object (src/BuildGraphOps.w) read only
a first argument starting with a non-empty triple=; an unknown option, a
bare triple= and every further argument were ignored, and the object was
assembled for the host. Three such targets built green.

The arguments are checked before any output: none, or exactly one non-empty
triple=…; otherwise "compile_asm_object target 'bogus' takes no argument
(the host) or one triple=<llvm-triple>; it has 1, the first
--unsupported-option".

Test: test/behavior/behav_969_asm_object_args_checked.w (the three bad
targets fail with the message, a target with no argument builds; the
installed compiler builds all four green).

Closes #969

…lvm-triple>; anything else is refused (#969)

Root cause: build_graph_assemble_to_object (src/BuildGraphOps.w) read only
a first argument starting with a non-empty `triple=`; an unknown option, a
bare `triple=` and every further argument were ignored, and the object was
assembled for the host. Three such targets built green.

The arguments are checked before any output: none, or exactly one non-empty
`triple=…`; otherwise "compile_asm_object target 'bogus' takes no argument
(the host) or one `triple=<llvm-triple>`; it has 1, the first
`--unsupported-option`".

Test: test/behavior/behav_969_asm_object_args_checked.w (the three bad
targets fail with the message, a target with no argument builds; the
installed compiler builds all four green).
@ehartford
ehartford added this pull request to stack #2713 October 26, 2026 00:31
@ehartford ehartford changed the title fix 969 build: a compile_asm_object target takes no argument or one triple=<llvm-triple>; anything else is refused (#969) Oct 26, 2026
@ehartford
ehartford marked this pull request as ready for review October 26, 2026 00:45
@ehartford
ehartford merged commit 47c3633 into main Oct 26, 2026
@ehartford
ehartford deleted the fix-969 branch October 26, 2026 00:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unsupported assembly arguments silently select the host assembler

1 participant