node-gc icon indicating copy to clipboard operation
node-gc copied to clipboard

Environment not fully "cleaned" with node-waf clean

Open polotek opened this issue 15 years ago • 1 comments

Had problems with rebuilding gc.node on a new computer. The configure info is located in .lock-wscript which should also be deleted with the clean command. Here's a patch.

diff --git a/wscript b/wscript
index 710ade2..144e90b 100644
--- a/wscript
+++ b/wscript
@@ -25,6 +25,7 @@ def shutdown():
   # better way to do this?
   if Options.commands['clean']:
     if exists('gc.node'): unlink('gc.node')
+    unlink('.lock-wscript')
   else:
     if exists('build/default/gc.node') and not exists('gc.node'):
       symlink('build/default/gc.node', 'gc.node')

polotek avatar May 09 '10 02:05 polotek

node-waf distclean deletes .lock-wscript, I think you should use it to full clean, and simple node-waf clean for only rebuild executable.

Sannis avatar Sep 21 '10 17:09 Sannis