Skip to content

Commit 65534e4

Browse files
check
1 parent 5f5a890 commit 65534e4

2 files changed

Lines changed: 1 addition & 18 deletions

File tree

configure.win

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,3 @@
1-
#!/bin/sh
2-
# Copy bundled libtcc.dll into package `libs` so R on Windows can find it at runtime.
3-
# This runs during package configure step on Windows (Rtools/MSYS2 shell).
4-
set -e
5-
6-
TINYCC_DIR="inst/tinycc"
7-
DLL="$TINYCC_DIR/bin/libtcc.dll"
8-
9-
if [ -f "$DLL" ]; then
10-
mkdir -p libs
11-
cp -f "$DLL" libs/
12-
fi
13-
14-
exit 0
151

162
#!/bin/sh
173
# we are on rtools so we have pkg-config etc

src/Makevars.win

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
TINYCC_DIR = ../inst/tinycc
22
PKG_CPPFLAGS = -I$(TINYCC_DIR)/include -I$(TINYCC_DIR)/lib/tcc/include
3-
LIBTCC_A = $(TINYCC_DIR)/lib/libtcc.dll.a
43
LIBTCC_DLL = $(TINYCC_DIR)/bin/libtcc.dll
5-
!if exist "$(LIBTCC_A)"
6-
PKG_LIBS = $(LIBTCC_A)
7-
!else if exist "$(LIBTCC_DLL)"
4+
!if exist "$(LIBTCC_DLL)"
85
PKG_LIBS = $(LIBTCC_DLL)
96
!else
107
PKG_LIBS = -L$(TINYCC_DIR)/lib -ltcc

0 commit comments

Comments
 (0)