-
Notifications
You must be signed in to change notification settings - Fork 7.3k
wscript uses sys.platform to check OS rather than DEST_OS #1266
Comments
This seems like a valid issue, but it seems like it should fallback to Can you submit a patch for this? |
I've started on a patch for this, but encountered a whole bunch of other problems preventing cross-compile from working.
Another thing to consider is that there is three different ways to support cross-compiling, ideally we would want to support all three:
#1 seems to be the closest to working with my patch in place (although work needs to be done for uv, etc.). Another issue I came across is i'm not sure exactly what in the configure script uses sys.platform because of build platform problems vs using sys.platform to detect host platform of the final binary, so I guess some checking by people who understand the configure script better would be needed to ensure no accidental bugs make it in. The patch is in my fork, adammw@14b070a, but I'd rather that patches to fix this other stuff all gets committed at once. |
Seems like node is dropping wscript/waf/scons on master, perhaps this will become easier with GYP? |
Assuming GYP is replacing wscript and scons, see #2148 for GYP equivalent. Closing this issue unless anyone really wants to get it to work with waf/scons/whatever, then I'll reopen. |
wscript uses sys.platform to check OS (e.g.
sys.platform.startswith("win32")
) rather than env['DEST_OS'] which prevents cross-compilation.This is present also in deps/libeio/wscript as well as root wscript.
The text was updated successfully, but these errors were encountered: