# HG changeset patch # User Sam # Date 1674027787 -25200 # Node ID f83f59d6f8890f6efe9088fb9ba3bb5958bca55b # Parent 4c723f56f860584c4b9e04870005178fb5c3449a add: correct publishing dir, correct check when nimcheck is running diff -r 4c723f56f860 -r f83f59d6f889 config.nims --- a/config.nims Wed Jan 18 14:15:47 2023 +0700 +++ b/config.nims Wed Jan 18 14:43:07 2023 +0700 @@ -102,7 +102,7 @@ exec(&"rm -rf {BUILDBASE}") task publish, "publish all build": - exec("rsync -rv build/ basx.dev:/var/www/public.basx.dev/zamikongine") + exec("rsync -rv build/ basx.dev:/var/www/public.basx.dev/semcongine") task glslangValidator, "Download glslangValidator (required for linux compilation)": let dirname="/tmp/glslang_download" diff -r 4c723f56f860 -r f83f59d6f889 src/semicongine/shader.nim --- a/src/semicongine/shader.nim Wed Jan 18 14:15:47 2023 +0700 +++ b/src/semicongine/shader.nim Wed Jan 18 14:43:07 2023 +0700 @@ -33,6 +33,8 @@ of VK_SHADER_STAGE_ALL: "" proc compileGLSLToSPIRV(stage: static VkShaderStageFlagBits, shaderSource: static string, entrypoint: string): seq[uint32] {.compileTime.} = + when defined(nimcheck): # will not run if nimcheck is running + return result const stagename = stage2string(stage) shaderHash = hash(shaderSource) @@ -43,8 +45,6 @@ let (output, exitCode_glsl) = gorgeEx(command=fmt"{projectPath}/glslangValidator --entry-point {entrypoint} -V --stdin -S {stagename} -o {shaderout}", input=shaderSource) if exitCode_glsl != 0: raise newException(Exception, output) - if output == "": # this happens when the nim was invoked with "check" instead of "compile/c", as it prevents the gorgeEx command to really run. However, there is hope, see https://github.com/nim-lang/RFCs/issues/430 - return result let shaderbinary = staticRead shaderout let (output_rm, exitCode_rm) = gorgeEx(command=fmt"rm {shaderout}")