[Git][NTPsec/ntpsec][master] CC_VERSION might have fewer than 3 elements, so use str.join()

Matt Selsky gitlab at mg.gitlab.com
Thu Feb 16 06:36:22 UTC 2017


Matt Selsky pushed to branch master at NTPsec / ntpsec


Commits:
57bb26ca by Matt Selsky at 2017-02-16T01:33:53-05:00
CC_VERSION might have fewer than 3 elements, so use str.join()

Sun CC, for example, only has XX.YY

- - - - -


1 changed file:

- wafhelpers/configure.py


Changes:

=====================================
wafhelpers/configure.py
=====================================
--- a/wafhelpers/configure.py
+++ b/wafhelpers/configure.py
@@ -55,7 +55,7 @@ def cmd_configure(ctx, config):
 
     ctx.load('compiler_c')
     ctx.start_msg('Checking compiler version')
-    ctx.end_msg('%s.%s.%s' % ctx.env.CC_VERSION)
+    ctx.end_msg("%s" % ".".join(ctx.env.CC_VERSION))
     ctx.load('bison')
 
     for opt in opt_map:



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/57bb26ca1515a392f5dcca9dea8cb976eb1072a5
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20170216/a98e0342/attachment.html>


More information about the vc mailing list