Permalink
Browse files

[build] Fix compatibility problem

  • Loading branch information...
sigarch
sigarch committed Aug 9, 2015
1 parent 5b6505c commit eb737a3a07d078843a1010c3f84e8fe923bdab09
Showing with 2 additions and 2 deletions.
  1. +2 −2 SConstruct
View
@@ -17,10 +17,10 @@ def buildSim(cppFlags, dir, type, pgo=None):
versionFile = joinpath(buildDir, "version.h")
if os.path.exists(".git"):
env.Command(versionFile, allSrcs + [".git/index", "SConstruct"],
- 'echo -e "#define ZSIM_BUILDDATE \\""`date`\\""\\\\n#define ZSIM_BUILDVERSION \\""`python misc/gitver.py`\\""" >>' + versionFile)
+ 'printf "#define ZSIM_BUILDDATE \\"`date`\\"\\n#define ZSIM_BUILDVERSION \\"`python misc/gitver.py`\\"" >>' + versionFile)
else:
env.Command(versionFile, allSrcs + ["SConstruct"],
- 'echo -e "#define ZSIM_BUILDDATE \\""`date`\\""\\\\n#define ZSIM_BUILDVERSION \\""no git repo\\""" >>' + versionFile)
+ 'printf "#define ZSIM_BUILDDATE \\"`date`\\"\\n#define ZSIM_BUILDVERSION \\"no git repo\\"" >>' + versionFile)
# Parallel builds?
#env.SetOption('num_jobs', 32)

0 comments on commit eb737a3

Please sign in to comment.