_toolchain: substitute '+' with 'X' in tool_env_var().
authorJean-François Nguyen <jf@lambdaconcept.com>
Fri, 16 Jul 2021 17:16:56 +0000 (19:16 +0200)
committerLuke Kenneth Casson Leighton <lkcl@lkcl.net>
Fri, 31 Dec 2021 15:31:14 +0000 (15:31 +0000)
nmigen/_toolchain/__init__.py

index fca2bacb31bb4e5de2c978fd92b06da6fd0dfa9e..123c4f0fa20f6e5f5f69ca223605693e2c00e988 100644 (file)
@@ -10,7 +10,7 @@ class ToolNotFound(Exception):
 
 
 def tool_env_var(name):
-    return name.upper().replace("-", "_")
+    return name.upper().replace("-", "_").replace("+", "X")
 
 
 def _get_tool(name):