Mercurial > games > semicongine
diff src/zamikongine/shader.nim @ 494:0c18638c7217
did: refactoring, move more from make to nimscript
author | Sam <sam@basx.dev> |
---|---|
date | Sun, 15 Jan 2023 23:23:54 +0700 |
parents | 680c4b8ca28a |
children | 3f1111f3b9f8 |
line wrap: on
line diff
--- a/src/zamikongine/shader.nim Sat Jan 14 23:34:50 2023 +0700 +++ b/src/zamikongine/shader.nim Sun Jan 15 23:23:54 2023 +0700 @@ -35,8 +35,6 @@ let stagename = stage2string(stage) # TODO: compiles only on linux for now (because we don't have compile-time functionality in std/tempfile) - if not defined(linux): - raise newException(Exception, "Compilation is currently only supported on linux (need mktemp command), sorry!") let (tmpfile, exitCode) = gorgeEx(command=fmt"mktemp --tmpdir shader_XXXXXXX.{stagename}") if exitCode != 0: raise newException(Exception, tmpfile)