This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# macOS Mojave fixes | |
# Cpp headers are messed up on Mojave. | |
# https://thecoatlessprofessor.com/programming/r-compiler-tools-for-rcpp-on-macos/#comment-4116064190 | |
# Setting `CPPFLAGS` in `~/.R/Makevars` doesn't work. | |
CPPFLAGS="-isystem /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include" | |
# The second option is to hard install the headers back to the default location of previous macOS builds | |
# e.g. /usr/local. | |
# This works but isn't a great solution since it requires modifying Mojave. |