]> khamidou — GitHub mirrors - electron.git/commitdiff
Don't define source_root on Windows
authorCheng Zhao <zcbenz@gmail.com>
Fri, 3 Jul 2015 01:46:35 +0000 (09:46 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Fri, 3 Jul 2015 01:46:35 +0000 (09:46 +0800)
toolchain.gypi

index eda53075a45f70fa69c882d6afe59d995fa7cd3e..6977847106f7c3dea8d78fdcca12d52c23bb01b3 100644 (file)
@@ -1,8 +1,5 @@
 {
   'variables': {
-    # The abosulte version of <(DEPTH).
-    'source_root': '<!(cd <(DEPTH) && pwd -P)',
-
     # Clang stuff.
     'make_clang_dir%': 'vendor/llvm-build/Release+Asserts',
     # Set this to true when building with Clang.
         'clang%': 0,
       }],  # OS=="win"
 
+      # Define the abosulte version of <(DEPTH).
+      ['OS!="win"', {
+        'source_root': '<!(cd <(DEPTH) && pwd -P)',
+      }],  # OS!="win"
+
       # Set default compiler flags depending on ARM version.
       ['arm_version==6', {
         'arm_arch%': 'armv6',