File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 11TINYCC_DIR = ../inst/tinycc
22PKG_CPPFLAGS = -I$(TINYCC_DIR)/include -I$(TINYCC_DIR)/lib/tcc/include
3- LIBTCC_A = $(TINYCC_DIR)/lib/libtcc.dll.a
43LIBTCC_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)"
85PKG_LIBS = $(LIBTCC_DLL)
96!else
107PKG_LIBS = -L$(TINYCC_DIR)/lib -ltcc
You can’t perform that action at this time.
0 commit comments