Skip to content

Commit 9e64ed3

Browse files
dramforeverkazk
andauthored
Move setting QEMU_ENV to bin/run as suggested in review
Co-authored-by: kazk <[email protected]>
1 parent 641c1bd commit 9e64ed3

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

Dockerfile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,4 @@ WORKDIR /workspace
3030
COPY workspace/codewars_reporter.c .
3131
COPY workspace/tests.c .
3232

33-
ENV QEMU_CPU=rv64,v=on,vext_spec=v1.0,zbkx=on,zk=on,zks=on
34-
3533
USER codewarrior

bin/run

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,10 @@ fi
1212
W=/workspace
1313

1414
ARCH=rv64gcv_zba_zbb_zbc_zbs_zbkx_zk_zks
15+
QEMU_CPU=rv64,v=on,vext_spec=v1.0,zbkx=on,zk=on,zks=on
1516

1617
# Create container
17-
C=$($CONTAINER_ENGINE container create --rm -w $W $IMAGE_TAG sh -c "gcc -O2 solution.s -march=$ARCH solution_tests.c -lcgreen codewars_reporter.c tests.c -o tests && ./tests")
18+
C=$($CONTAINER_ENGINE container create --rm --env QEMU_CPU=$QEMU_CPU -w $W $IMAGE_TAG sh -c "gcc -O2 solution.s -march=$ARCH solution_tests.c -lcgreen codewars_reporter.c tests.c -o tests && ./tests")
1819

1920
# Copy files from the current directory
2021
# example/solution.s

0 commit comments

Comments
 (0)