diff options
Diffstat (limited to 'tensorflow/tools/swig')
-rw-r--r-- | tensorflow/tools/swig/.gitignore | 1 | ||||
-rwxr-xr-x | tensorflow/tools/swig/swig.sh | 10 |
2 files changed, 10 insertions, 1 deletions
diff --git a/tensorflow/tools/swig/.gitignore b/tensorflow/tools/swig/.gitignore new file mode 100644 index 0000000000..a14f886013 --- /dev/null +++ b/tensorflow/tools/swig/.gitignore @@ -0,0 +1 @@ +swig_path diff --git a/tensorflow/tools/swig/swig.sh b/tensorflow/tools/swig/swig.sh index c35b2ee363..367dcb4cd0 100755 --- a/tensorflow/tools/swig/swig.sh +++ b/tensorflow/tools/swig/swig.sh @@ -14,4 +14,12 @@ # limitations under the License. # ============================================================================== -swig "$@" +# If possible, read swig path out of "swig_path" generated by configure +SWIG=swig +SWIG_PATH=tensorflow/tools/swig/swig_path +if [ -e $SWIG_PATH ]; then + SWIG=`cat $SWIG_PATH` +fi + +# If this line fails, rerun configure to set the path to swig correctly +"$SWIG" "$@" |