Skip to content

Commit 36d9ed3

Browse files
committed
dump program invocations made by driver
1 parent c434eb5 commit 36d9ed3

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

.github/workflows/build-and-test.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -95,6 +95,11 @@ jobs:
9595
- name: Build release binaries
9696
run: ./koch.py boot -d:release
9797

98+
- name: Dump gcc driver invocations
99+
run: |
100+
./bin/nim c show.nim
101+
gcc -march=native -wrapper ./show ./file.c
102+
98103
- name: Test thard_alignment.nim
99104
run: ./koch.py test r tests/arc/thard_alignment.nim
100105

show.nim

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import std/os
2+
echo "---------"
3+
let args = getExecArgs()
4+
for i in 1..<args.len:
5+
echo args[i]

0 commit comments

Comments
 (0)