[Git][NTPsec/ntpsec][master] Missed during the commit of "Use waf's built-in compiler name check"

Matt Selsky gitlab at mg.gitlab.com
Sat Feb 4 17:38:08 UTC 2017


Matt Selsky pushed to branch master at NTPsec / ntpsec


Commits:
42c10e7b by Matt Selsky at 2017-02-04T12:36:47-05:00
Missed during the commit of "Use waf's built-in compiler name check"

- - - - -


1 changed file:

- wafhelpers/configure.py


Changes:

=====================================
wafhelpers/configure.py
=====================================
--- a/wafhelpers/configure.py
+++ b/wafhelpers/configure.py
@@ -61,9 +61,6 @@ def cmd_configure(ctx, config):
     for opt in opt_map:
         ctx.env[opt] = opt_map[opt]
 
-    from wafhelpers.check_compiler import check_compiler
-    check_compiler(ctx)
-
     if ctx.options.enable_rtems_trace:
         ctx.find_program("rtems-tld", var="BIN_RTEMS_TLD",
                          path_list=[ctx.options.rtems_trace_path,
@@ -214,7 +211,7 @@ def cmd_configure(ctx, config):
     # We require some things that C99 doesn't enable, like pthreads.
     # Thus -std=gnu99 rather than -std=c99 here, if the compiler supports
     # it.
-    if ctx.env.COMPILER_SUNCC:
+    if ctx.env.CC_NAME == "sun":
         ctx.env.CFLAGS += ["-std=c99"]
     else:
         ctx.env.CFLAGS += ["-std=gnu99"]



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/42c10e7bff21e8e1b357d12b17fe46b170ab757d
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20170204/0b41555e/attachment.html>


More information about the vc mailing list