Skip to content

Commit 45f98c0

Browse files
committed
Set clang as cc in nim.cfg and use gmake to build csources.
1 parent 5a13bf3 commit 45f98c0

File tree

2 files changed

+5
-9
lines changed

2 files changed

+5
-9
lines changed

.builds/openbsd.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
image: openbsd/latest
22
packages:
3+
- gmake
34
- sqlite3
45
- node
56
- boehm-gc
@@ -14,20 +15,15 @@ tasks:
1415
- setup: |
1516
cd Nim
1617
git clone --depth 1 -q https://github.com/nim-lang/csources.git
17-
cd csources
18-
sh build.sh
19-
cd ../
18+
gmake -C csources -j $(sysctl -n hw.ncpu)
2019
bin/nim c --skipUserCfg --skipParentCfg koch
21-
sed -i'.original' -e 's/cc = gcc/cc = clang/g' config/nim.cfg
2220
echo 'export PATH=$HOME/Nim/bin:$PATH' >> $HOME/.buildenv
2321
- test: |
2422
cd Nim
25-
./koch runCI && exitcode=$? || exitcode=$?
26-
if [[ $exitcode -ne 0 ]]; then
23+
if ! ./koch runCI; then
2724
nim c -r tools/ci_testresults.nim
25+
exit 1
2826
fi
29-
30-
exit $exitcode
3127
triggers:
3228
- action: email
3329
condition: failure

config/nim.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,7 @@ path="$lib/pure"
153153
@end
154154
@end
155155

156-
@if macosx or freebsd:
156+
@if macosx or freebsd or openbsd:
157157
cc = clang
158158
tlsEmulation:on
159159
gcc.options.always = "-w"

0 commit comments

Comments
 (0)