Skip to content

Commit f7949c0

Browse files
committed
streamline windows build system
1 parent 2438f8a commit f7949c0

File tree

6 files changed

+6
-55
lines changed

6 files changed

+6
-55
lines changed

cleanup.ucrt

Lines changed: 0 additions & 1 deletion
This file was deleted.

configure.ucrt

Lines changed: 0 additions & 35 deletions
This file was deleted.

configure.win

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,6 @@
22

33
LIB_VER="1.18.2"
44

5-
# Initialise
6-
PKG_CFLAGS=""
7-
PKG_LIBS="-Wl,-Bstatic -lfswatch -lstdc++ -lstdc++fs -pthread -Wl,-Bdynamic"
8-
95
# Find compiler and export flags
106
CC=`"${R_HOME}/bin/R" CMD config CC`
117
export CC
@@ -18,18 +14,5 @@ cmake --build . --target install
1814
cd ..
1915
rm -rf fswatch-$LIB_VER
2016

21-
if [ -d "install/lib64" ]
22-
then
23-
PKG_CFLAGS="-I../install/include $PKG_CFLAGS"
24-
PKG_LIBS="-L../install/lib64 $PKG_LIBS"
25-
elif [ -d "install/lib" ]
26-
then
27-
PKG_CFLAGS="-I../install/include $PKG_CFLAGS"
28-
PKG_LIBS="-L../install/lib $PKG_LIBS"
29-
fi
30-
31-
# Write to Makevars
32-
sed -e "s|@cflags@|$PKG_CFLAGS|" -e "s|@libs@|$PKG_LIBS|" src/Makevars.in > src/Makevars
33-
3417
# Success
3518
exit 0

src/Makevars.ucrt

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
PKG_CFLAGS=-I../install/include $(C_VISIBILITY)
2+
PKG_LIBS=-L../install/lib -lfswatch -lstdc++ -static-libgcc -static-libstdc++ -pthread

src/Makevars.win

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
PKG_CFLAGS=-I../install/include $(C_VISIBILITY)
2+
PKG_LIBS=-L../install/lib -Wl,-Bstatic -lfswatch -lstdc++ -lstdc++fs -pthread -Wl,-Bdynamic

src/watcher.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ void load_later_safe(void *data) {
3232
}
3333

3434
void exec_later(void *data) {
35-
SEXP call, x = (SEXP) data;
36-
PROTECT(call = Rf_lcons(data, R_NilValue));
35+
SEXP call, fn = (SEXP) data;
36+
PROTECT(call = Rf_lcons(fn, R_NilValue));
3737
Rf_eval(call, R_GlobalEnv);
3838
UNPROTECT(1);
3939
}

0 commit comments

Comments
 (0)