Skip to content
This repository has been archived by the owner on Apr 22, 2023. It is now read-only.

Commit

Permalink
waf: Don't build out/Debug/node_g - just out/Debug/node
Browse files Browse the repository at this point in the history
This is to match how GYP does it.
  • Loading branch information
ry committed Aug 23, 2011
1 parent ea15635 commit 42529dd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
2 changes: 1 addition & 1 deletion Makefile
Expand Up @@ -12,7 +12,7 @@ export NODE_MAKE := $(MAKE)

all: program
@-[ -f out/Release/node ] && ls -lh out/Release/node
@-[ -f out/Debug/node_g ] && ls -lh out/Debug/node_g
@-[ -f out/Debug/node ] && ls -lh out/Debug/node

all-progress:
@$(WAF) -p build
Expand Down
11 changes: 6 additions & 5 deletions wscript
Expand Up @@ -930,8 +930,9 @@ def build(bld):

if bld.env["USE_DEBUG"]:
node_g = node.clone("Debug")
node_g.target = "node_g"
node_g.target = "node"
node_g.uselib += ' V8_G UV '
node_g.install_path = None

node_conf_g = node_conf.clone("Debug")
node_conf_g.dict = subflags(node_g)
Expand Down Expand Up @@ -973,13 +974,13 @@ def shutdown():
if sys.platform.startswith("win32"):
if os.path.exists('out/Release/node.exe'):
os.system('cp out/Release/node.exe .')
if os.path.exists('out/Debug/node_g.exe'):
os.system('cp out/Debug/node_g.exe .')
if os.path.exists('out/Debug/node.exe'):
os.system('cp out/Debug/node.exe node_g.exe')
else:
if os.path.exists('out/Release/node') and not os.path.exists('node'):
os.symlink('out/Release/node', 'node')
if os.path.exists('out/Debug/node_g') and not os.path.exists('node_g'):
os.symlink('out/Debug/node_g', 'node_g')
if os.path.exists('out/Debug/node') and not os.path.exists('node_g'):
os.symlink('out/Debug/node', 'node_g')
else:
if sys.platform.startswith("win32"):
if os.path.exists('node.exe'): os.unlink('node.exe')
Expand Down

0 comments on commit 42529dd

Please sign in to comment.