Skip to content

Commit

Permalink
'check_cc' -> 'check_cxx' since we only use cxx when compiling the mo…
Browse files Browse the repository at this point in the history
…dule.
  • Loading branch information
TooTallNate committed Apr 29, 2011
1 parent 24cd935 commit 62e8612
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions wscript
Original file line number Diff line number Diff line change
@@ -1,17 +1,15 @@


def set_options(opt):
opt.tool_options("compiler_cc")
opt.tool_options("compiler_cxx")

def configure(conf):
conf.check_tool("compiler_cc")
conf.check_tool("compiler_cxx")
conf.check_tool("node_addon")

conf.check_cc(header_name='time.h', mandatory=True)
conf.check_cxx(header_name='time.h', mandatory=True)

if conf.check_cc(msg="Checking for 'tm_gmtoff' in struct 'tm'", fragment="""
if conf.check_cxx(msg="Checking for 'tm_gmtoff' in struct 'tm'", fragment="""
#include <time.h>
int main() {
time_t now = time(NULL);
Expand All @@ -22,7 +20,7 @@ def configure(conf):
"""):
conf.env.append_value('CXXFLAGS', '-DHAVE_TM_GMTOFF=1')

if conf.check_cc(msg="Checking for 'altzone' defined by <time.h>", fragment="""
if conf.check_cxx(msg="Checking for 'altzone' defined by <time.h>", fragment="""
#include <time.h>
int main() {
long tz = altzone;
Expand All @@ -31,7 +29,7 @@ def configure(conf):
"""):
conf.env.append_value('CXXFLAGS', '-DHAVE_ALTZONE=1')

if conf.check_cc(msg="Checking for 'timezone' defined by <time.h>", fragment="""
if conf.check_cxx(msg="Checking for 'timezone' defined by <time.h>", fragment="""
#include <time.h>
int main() {
long tz = timezone;
Expand Down

0 comments on commit 62e8612

Please sign in to comment.