Skip to content

Commit

Permalink
c.sh: Do not define TMPDIR as it confuses clang
Browse files Browse the repository at this point in the history
meson.build:12:0: ERROR: Compiler cc cannot compile programs.

Use TMP_DIR instead.
  • Loading branch information
LudovicRousseau committed May 20, 2024
1 parent 0c07a1c commit 763e4fe
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions c.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,19 +3,19 @@
set -x
set -e

BUILDDIR=builddir
TMPDIR=/tmp/pcsc
BUILD_DIR=builddir
TMP_DIR=/tmp/pcsc

rm -rf "$BUILDDIR"
rm -rf "$BUILD_DIR"

meson setup "$BUILDDIR" \
meson setup "$BUILD_DIR" \
--prefix /usr \
-Dsystemdunit=system \
"$@"

cd "$BUILDDIR"
cd "$BUILD_DIR"
meson compile

rm -rf "$TMPDIR"
DESTDIR="$TMPDIR" meson install
find "$TMPDIR"
rm -rf "$TMP_DIR"
DESTDIR="$TMP_DIR" meson install
find "$TMP_DIR"

0 comments on commit 763e4fe

Please sign in to comment.