Skip to content

Instantly share code, notes, and snippets.

@remlapmot
Last active February 10, 2022 15:45
Show Gist options
  • Save remlapmot/d2ccf053c93e10512fc9daf3a904ef76 to your computer and use it in GitHub Desktop.
Save remlapmot/d2ccf053c93e10512fc9daf3a904ef76 to your computer and use it in GitHub Desktop.
Environment variables for building some R packages from source on WIndows; location ${HOME}/.R
# CC="C:\Program Files\LLVM\bin\clang.exe"
# CXX="C:\Program Files\LLVM\bin\clang++.exe"
# CXX11="C:\Program Files\LLVM\bin\clang++.exe"
# CXX14="C:\Program Files\LLVM\bin\clang++.exe"
# CXXFLAGS=-O1 -g -fsanitize=address -fno-omit-frame-pointer
# PKG_CXXFLAGS=-Og -fsanitize=address
# LDFLAGS=-fsanitize=address
## CXX14FLAGS += -mtune=native -O3 -mmmx -msse -msse2 -msse3 -mssse3 -msse4.1 -msse4.2
CXX14FLAGS=-O3 -mtune=native -march=native -Wno-unused-variable -Wno-unused-function
# for installing rjags from source - first install JAGS, then point to directory
JAGS_ROOT=C:/Program Files/JAGS/JAGS-4.3.0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment