Skip to content

Commit

Permalink
Revert "optimization: avoid calling math multiple times"
Browse files Browse the repository at this point in the history
This reverts commit 159b9b6.

The math command must be set before find_math_dirs can be called.
  • Loading branch information
Alexander Voigt authored and Alexander Voigt committed Nov 14, 2017
1 parent 7ba0e90 commit fe69081
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions config/mathematica_include_paths.sh
Expand Up @@ -21,6 +21,8 @@ find_math_dirs() {
}

get_librarylink_incpath() {
find_math_dirs

for p in \
"$topdir/SystemFiles/IncludeFiles/C" ; do
test -d "$p" && break
Expand All @@ -30,6 +32,8 @@ get_librarylink_incpath() {
}

get_mathlink_incpath() {
find_math_dirs

for p in \
"$topdir/SystemFiles/Links/MathLink/DeveloperKit/$sysid/CompilerAdditions" \
"$topdir/SystemFiles/Links/MathLink/DeveloperKit/CompilerAdditions" \
Expand All @@ -53,8 +57,6 @@ Options:
EOF
}

find_math_dirs

if test $# -gt 0 ; then
while test ! "x$1" = "x" ; do
case "$1" in
Expand Down

0 comments on commit fe69081

Please sign in to comment.