Skip to content

Commit

Permalink
Fix the submodule and build
Browse files Browse the repository at this point in the history
  • Loading branch information
fikovnik committed Aug 7, 2024
1 parent 132039d commit b0c37fd
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 7 deletions.
1 change: 0 additions & 1 deletion Makefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# Saner makefile
MAKEFLAGS += --no-builtin-rules
BASE_DIR := $(realpath $(dir $(abspath $(lastword $(MAKEFILE_LIST)))))
TOOLS_DIR := $(BASE_DIR)/tools

Expand Down
1 change: 1 addition & 0 deletions external/R
Submodule R added at 02cb3a
21 changes: 15 additions & 6 deletions tools/build-gnur.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,21 @@ if [ ! -d "$BASE_DIR" ]; then
exit 1
fi

if [[ "$1" == "--debug" ]]; then
export CFLAGS="-ggdb3 -O0"
export CXXFLAGS="-ggdb3 -O0"
export CPPFLAGS="-ggdb3 -O0"
echo "Building a debug version of R"
fi
while [[ $# -gt 0 ]]; do
case $1 in
-d | --debug)
export CFLAGS="-ggdb3 -O0"
export CXXFLAGS="-ggdb3 -O0"
export CPPFLAGS="-ggdb3 -O0"
echo "Building a debug version of R"
shift
;;
*)
echo "Unknown option $1"
exit 1
;;
esac
done

if [[ "$OSTYPE" == "darwin"* ]]; then
USING_OSX=1
Expand Down

0 comments on commit b0c37fd

Please sign in to comment.