Created
February 5, 2016 00:08
-
-
Save wom-bat/57f4223f647475cee76f to your computer and use it in GitHub Desktop.
patch for regex bug.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/packages/machine-usp-x86/build.py b/packages/machine-usp-x86/build.py | |
index 030f67a..28a156f 100644 | |
--- a/packages/machine-usp-x86/build.py | |
+++ b/packages/machine-usp-x86/build.py | |
@@ -66,6 +66,6 @@ def _get_gcc_options(): | |
def _get_gcc_version(): | |
gcc_output = subprocess.check_output(['gcc', '--version']).decode() | |
first_line = gcc_output.splitlines()[0] | |
- version_str = re.search(' ([0-9]+\.[0-9])+\.[0-9]+$', first_line).group(1) | |
+ version_str = re.search(' ([0-9]+\.[0-9])+\.[0-9]+ ?.*$', first_line).group(1) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment