Skip to content

Commit

Permalink
Make it explicit that this piece of code is only meant to do somethin…
Browse files Browse the repository at this point in the history
…g for windows platforms
  • Loading branch information
msprotz committed May 5, 2017
1 parent 980e038 commit 8dae071
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions SConstruct
Original file line number Diff line number Diff line change
Expand Up @@ -345,9 +345,10 @@ def kremlin_emitter(target, source, env):
def add_kremlin(env):
# In order to succeed, the Kremlin builder needs an extra directory in the
# PATH on Windows so that the DLL can be properly found.
gmp_dll = FindFile('libgmp-10.dll', os.environ['PATH'].split(';'))
if gmp_dll != None:
env.PrependENVPath('PATH', os.path.dirname(str(gmp_dll)))
if sys.platform == 'win32':
gmp_dll = FindFile('libgmp-10.dll', os.environ['PATH'].split(';'))
if gmp_dll != None:
env.PrependENVPath('PATH', os.path.dirname(str(gmp_dll)))
env['KREMLIN_FLAGS'] = '-warn-error +1..4 -warn-error @4 -skip-compilation -add-include \\"DafnyLib.h\\" -cc msvc'
kremlin = Builder(action='cd ${TARGET.dir} && ${KREMLIN.abspath} $KREMLIN_FLAGS ${SOURCE.file} $KREMLIN_USER_ARGS',
suffix = '.c',
Expand Down

0 comments on commit 8dae071

Please sign in to comment.