Skip to content

fix(corpus): keep gnatmake source and -o before -cargs - #2

Merged
gmh5225 merged 1 commit into
mainfrom
feat/fix-gnatmake-cargs
Aug 15, 2026
Merged

gmh5225 merged 1 commit into
mainfrom
feat/fix-gnatmake-cargs

Conversation

@gmh5225

@gmh5225 gmh5225 commented Aug 15, 2026

Copy link
Copy Markdown
Contributor

Summary

  • gnatmake hands every token after -cargs to gcc. The producer appended the Ada source and -o after that door, so both GNAT cells printed help and wrote no binary.
  • Build the command as gnatmake [switches] source -o output -cargs [gcc flags], and keep -O0/-O2 on the gnatmake side.

Test plan

  • python3 -m unittest discover -s scripts/tests -p '*ada_d_eh*.py' -v
  • python3 -m unittest discover -s scripts/tests -p 'test_build_language_eh_corpus.py' -v
  • CI gnat-x86_64-linux-gnu and gnat-aarch64-linux-gnu
  • Assemble job publishes the 12 Ada/D artifacts to main

gnatmake treats every token after -cargs as gcc argv, so the previous
command never saw the Ada source and produced no binary.
@gmh5225
gmh5225 merged commit 0198c60 into main Aug 15, 2026
63 checks passed
@gmh5225
gmh5225 deleted the feat/fix-gnatmake-cargs branch August 15, 2026 17:48
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.

2 participants