Skip to content

Commit

Permalink
Merge pull request #68 from tomdeakin/spacesinbinary
Browse files Browse the repository at this point in the history
Add quotes around the oclgrind script to run a binary with spaces in
  • Loading branch information
jrprice committed May 12, 2015
2 parents fb94e44 + fd492d3 commit 171d998
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/runtime/oclgrind
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,8 @@ if [ "$(uname -s)" == "Darwin" ]
then
DYLD_LIBRARY_PATH=$LIBDIR:$DYLD_LIBRARY_PATH \
DYLD_INSERT_LIBRARIES=$LIBDIR/liboclgrind-rt.dylib \
DYLD_FORCE_FLAT_NAMESPACE=1 $@
DYLD_FORCE_FLAT_NAMESPACE=1 "$@"
else
LD_LIBRARY_PATH=$LIBDIR:$LD_LIBRARY_PATH \
LD_PRELOAD=$LIBDIR/liboclgrind-rt.so $@
LD_PRELOAD=$LIBDIR/liboclgrind-rt.so "$@"
fi

0 comments on commit 171d998

Please sign in to comment.