• R/O
  • HTTP
  • SSH
  • HTTPS

Commit

Tags
No Tags

Frequently used words (click to add to your profile)

javac++androidlinuxc#windowsobjective-ccocoa誰得qtpythonphprubygameguibathyscaphec計画中(planning stage)翻訳omegatframeworktwitterdomtestvb.netdirectxゲームエンジンbtronarduinopreviewer

Commit MetaInfo

Revisiond1b4b10e2ff4f1a69c9d3716e225f83a02295338 (tree)
Time2022-08-21 15:54:15
AuthorFs <Fsu0413@vip....>
CommiterFs

Log Message

workaround emsdk version on windows / add failed script

Change Summary

Incremental Difference

--- a/Compile/lib/CompilerVer.lua
+++ b/Compile/lib/CompilerVer.lua
@@ -15,6 +15,8 @@ local runCmdScript = function(script)
1515 local resFile = io.open(fileName2, "r")
1616 ret = resFile:read()
1717 resFile:close()
18+ else
19+ io.stderr:write("[CompilerVer.lua][runCmdScript] Following script fails to run:\n" .. script .. "\n")
1820 end
1921
2022 os.remove(fileName .. ".cmd")
@@ -45,6 +47,8 @@ local runShScript = function(script)
4547 local resFile = io.open(fileName2, "r")
4648 ret = resFile:read()
4749 resFile:close()
50+ else
51+ io.stderr:write("[CompilerVer.lua][runShScript] Following script fails to run:\n" .. script .. "\n")
4852 end
4953
5054 os.remove(fileName)
@@ -116,6 +120,12 @@ compilerVer.emcc = function(isWin, path)
116120 else
117121 ret = runShScript(script)
118122 end
123+
124+ if not ret then
125+ -- workaround: emsdk 1.39.8 don't set path of python
126+ io.stderr:write("[CompilerVer.lua][compilerVer.emcc] workaround emsdk version\n")
127+ ret = "1.39.8"
128+ end
119129
120130 return parseVersionNum(ret)
121131 end