Commit fbf29ec9 authored by Pierre Augier's avatar Pierre Augier
Browse files

Fix a small bug with FLUIDPYTHRAN_NO_REPLACE

parent 1dea173e3535
......@@ -154,7 +154,7 @@ FluidPythran is sensible to environment variables:
the function :code:`set_pythranize_at_import`.
- :code:`FLUIDPYTHRAN_NO_REPLACE` can be set to disable all code replacements.
This is useful only when measuring code coverage.
This is useful to compare execution times and when measuring code coverage.
- :code:`FLUID_COMPILE_CACHEDJIT` can be set to false to disable the
compilation of cachedjited functions. This can be useful for unittests.
......
......@@ -240,12 +240,13 @@ class FluidPythran:
self.is_transpiled = False
return
self.is_compiling = False
if not use_fluidpythranized or not has_to_replace:
self.is_transpiled = False
self.is_compiled = False
return
self.is_compiling = False
if "." in module_name:
package, module_short_name = module_name.rsplit(".", 1)
module_pythran_name = package + "."
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment