Skip to content

Commit

Permalink
[c] add clang build
Browse files Browse the repository at this point in the history
  • Loading branch information
shish committed Apr 6, 2024
1 parent c957ba4 commit 2a1334e
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions c/build_clang.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
#!/usr/bin/env bash
set -eu

export CC=clang CXX=clang++
cd $(dirname $0)
BUILDDIR=${BUILD_ROOT:-build}/$(basename $(pwd))-$(echo $(basename $0) | sed 's/build_*\(.*\).sh/\1/')-$(uname)-$(uname -m)
cmake -DCMAKE_BUILD_TYPE=Release -B $BUILDDIR .
cmake --build $BUILDDIR -j
cp $BUILDDIR/rosettaboy-c ./rosettaboy-clang

0 comments on commit 2a1334e

Please sign in to comment.