From fc2253760d83cbd440c8d786e22d35804eb9bf05 Mon Sep 17 00:00:00 2001 From: Stephan Seitz <stephan.seitz@fau.de> Date: Fri, 13 Sep 2019 01:13:42 +0200 Subject: [PATCH] Fixup: 'cl.exe' should be used on Windows not if not Windows --- src/pystencils_autodiff/tensorflow_jit.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pystencils_autodiff/tensorflow_jit.py b/src/pystencils_autodiff/tensorflow_jit.py index 4bf3a85..f0257d6 100644 --- a/src/pystencils_autodiff/tensorflow_jit.py +++ b/src/pystencils_autodiff/tensorflow_jit.py @@ -29,13 +29,13 @@ if get_compiler_config()['os'] != 'windows': _include_flags = ['-I' + sysconfig.get_paths()['include'], '-I' + get_pystencils_include_path()] _do_not_link_flag = "-c" _position_independent_flag = "-fPIC" - get_compiler_config()['command'] = 'cl.exe' else: _do_not_link_flag = "/c" _output_flag = '/OUT:' _shared_object_flag = '/DLL' _include_flags = ['/I' + sysconfig.get_paths()['include'], '/I' + get_pystencils_include_path()] _position_independent_flag = "/DTHIS_FLAG_DOES_NOTHING" + get_compiler_config()['command'] = 'cl.exe' try: -- GitLab