Browse Source

Merge pull request #9682 from electron/release-detection

Rebuild native modules when configuration starts with R
Kevin Sawicki 7 years ago
parent
commit
21439a138b
1 changed files with 1 additions and 1 deletions
  1. 1 1
      script/rebuild-test-modules.py

+ 1 - 1
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: