diff --git a/script/rebuild-test-modules.py b/script/rebuild-test-modules.py index 7cbb189f519e..87add8c3116c 100755 --- a/script/rebuild-test-modules.py +++ b/script/rebuild-test-modules.py @@ -41,7 +41,7 @@ def main(): shutil.copy2(atom_lib, iojs_lib) # Native modules can only be compiled against release builds on Windows - if config == 'R' or PLATFORM != 'win32': + if config[0] == 'R' or PLATFORM != 'win32': update_electron_modules(os.path.dirname(spec_modules), get_target_arch(), node_dir) else: