<pre style='margin:0'>
Joshua Root (jmroot) pushed a commit to branch master
in repository macports-ports.
</pre>
<p><a href="https://github.com/macports/macports-ports/commit/b215f4265eff84d045c20168dfc47b4f99d5c969">https://github.com/macports/macports-ports/commit/b215f4265eff84d045c20168dfc47b4f99d5c969</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit b215f4265eff84d045c20168dfc47b4f99d5c969
</span>Author: Joshua Root <jmr@macports.org>
AuthorDate: Mon Mar 12 02:38:36 2018 +1100
<span style='display:block; white-space:pre;color:#404040;'> compiler_blacklist_versions: performance fix
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> Blacklisting llvm-gcc-4.2 versions is really slow when llvm-gcc-4.2
</span><span style='display:block; white-space:pre;color:#404040;'> is not available. Add a quick sanity check based on OS and Xcode
</span><span style='display:block; white-space:pre;color:#404040;'> version to skip the expensive checks.
</span>---
_resources/port1.0/group/compiler_blacklist_versions-1.0.tcl | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/_resources/port1.0/group/compiler_blacklist_versions-1.0.tcl b/_resources/port1.0/group/compiler_blacklist_versions-1.0.tcl
</span><span style='display:block; white-space:pre;color:#808080;'>index f0f088a..58c95f4 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/_resources/port1.0/group/compiler_blacklist_versions-1.0.tcl
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/_resources/port1.0/group/compiler_blacklist_versions-1.0.tcl
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -113,7 +113,7 @@ proc compiler_blacklist_versions._version_matches {compiler comparison_operator
</span> }
proc compiler_blacklist_versions._get_compiler_version {compiler} {
<span style='display:block; white-space:pre;background:#ffe0e0;'>- global compiler_blacklist_versions._compiler_versions
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ global compiler_blacklist_versions._compiler_versions os.major xcodeversion
</span> if {[info exists compiler_blacklist_versions._compiler_versions(${compiler})]} {
return [set compiler_blacklist_versions._compiler_versions(${compiler})]
}
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -122,6 +122,9 @@ proc compiler_blacklist_versions._get_compiler_version {compiler} {
</span> set re {clang(?:_.*)?-([0-9.]+)}
}
llvm-gcc-4.2 {
<span style='display:block; white-space:pre;background:#e0ffe0;'>+ if {${os.major} > 15 || [vercmp $xcodeversion 5.0] >= 0 || [vercmp $xcodeversion 3.1] < 0} {
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ return ""
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ }
</span> set re {LLVM build ([0-9.]+)}
}
gcc-4.0 -
</pre><pre style='margin:0'>
</pre>