Index: src/d8.gyp |
diff --git a/src/d8.gyp b/src/d8.gyp |
index a8361e6b4e5eca0cb83c791de8b44fbd85f3bceb..cce8f2a1fb0782738648dd9f09d4fd40b22d14a8 100644 |
--- a/src/d8.gyp |
+++ b/src/d8.gyp |
@@ -45,6 +45,10 @@ |
'd8.cc', |
], |
'conditions': [ |
+ [ 'console=="readline"', { |
+ 'libraries': [ '-lreadline', ], |
+ 'sources': [ 'd8-readline.cc' ], |
+ }], |
[ 'component!="shared_library"', { |
'sources': [ 'd8-debug.cc', '<(SHARED_INTERMEDIATE_DIR)/d8-js.cc', ], |
'conditions': [ |
@@ -57,10 +61,6 @@ |
'd8_js2c', |
], |
}], |
- [ 'console=="readline"', { |
- 'libraries': [ '-lreadline', ], |
- 'sources': [ 'd8-readline.cc' ], |
- }], |
['(OS=="linux" or OS=="mac" or OS=="freebsd" or OS=="netbsd" \ |
or OS=="openbsd" or OS=="solaris" or OS=="android")', { |
'sources': [ 'd8-posix.cc', ] |