| Index: src/vm/vm.gyp
|
| diff --git a/src/vm/vm.gyp b/src/vm/vm.gyp
|
| index 79b5b9c96d7d4c8658d0bfdf2f5d19bfe62084d6..d2963b29303421bad19813cc417a64399a80abed 100644
|
| --- a/src/vm/vm.gyp
|
| +++ b/src/vm/vm.gyp
|
| @@ -23,7 +23,11 @@
|
| 'event_handler.cc',
|
| 'event_handler_macos.cc',
|
| 'event_handler_linux.cc',
|
| + 'ffi.h',
|
| 'ffi.cc',
|
| + 'ffi_linux.cc',
|
| + 'ffi_macos.cc',
|
| + 'ffi_posix.cc',
|
| 'fletch.cc',
|
| 'fletch_api_impl.cc',
|
| 'heap.cc',
|
| @@ -69,6 +73,7 @@
|
| 'fletch_vm_library_base',
|
| '../shared/shared.gyp:fletch_shared',
|
| '../double_conversion.gyp:double_conversion',
|
| + 'ffi_test_library',
|
| ],
|
|
|
| # TODO(kasperl): Remove the below conditions when we no longer use weak
|
| @@ -215,5 +220,24 @@
|
| '../shared/test_main.cc',
|
| ],
|
| },
|
| + {
|
| + 'target_name': 'ffi_test_library',
|
| + 'type': 'shared_library',
|
| + 'dependencies': [
|
| + ],
|
| + # We need to unset a few cflags since they are not allowed when compiling
|
| + # a c library.
|
| + 'cflags!': [
|
| + '-std=c++11',
|
| + '-fno-rtti',
|
| + '-Wno-non-virtual-dtor',
|
| + ],
|
| + 'sources': [
|
| + 'ffi_test_library.c',
|
| + ],
|
| + 'defines': [
|
| + 'PIC',
|
| + ],
|
| + },
|
| ],
|
| }
|
|
|