Skip to content

Commit

Permalink
we need *all* cflags from the node build
Browse files Browse the repository at this point in the history
  • Loading branch information
sprsquish committed Mar 17, 2010
1 parent c8d4146 commit ef46319
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 8 deletions.
1 change: 1 addition & 0 deletions .gitignore
Expand Up @@ -16,3 +16,4 @@ TODO
**/*.swp
*.log
**/*.swo
*.swp
9 changes: 1 addition & 8 deletions SConstruct
Expand Up @@ -42,14 +42,7 @@ cflags = ' '.join([

if using_node_js:
node_flags = shellOut([node_exe, '--vars'])

node_flags = re.findall(r'\W-I[^\s]+', node_flags)

if node_flags:
print 'Adding node include paths to build parameters'
print '\n'.join(node_flags)

cflags += ' ' + ' '.join(node_flags)
cflags += ' ' + re.sub('NODE_CFLAGS:', '', node_flags.split("\n")[1])

testBuilder = Builder(action = 'node spec/tacular.js')

Expand Down

0 comments on commit ef46319

Please sign in to comment.