Skip to content

Commit

Permalink
build: fix building with ninja
Browse files Browse the repository at this point in the history
The ninja build places objects in a different directory.

Co-authored-by: Gabriel Schulhof <[email protected]>
Signed-off-by: Richard Lau <[email protected]>

PR-URL: #32071
Reviewed-By: Matheus Marchini <[email protected]>
Reviewed-By: Gabriel Schulhof <[email protected]>
Reviewed-By: Sam Roberts <[email protected]>
Reviewed-By: Shelley Vohr <[email protected]>
Reviewed-By: Myles Borins <[email protected]>
Reviewed-By: Jiawen Geng <[email protected]>
  • Loading branch information
richardlau authored and MylesBorins committed Mar 4, 2020
1 parent 4dc59b9 commit 9c1ac50
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion node.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,11 @@
'node_mksnapshot_exec': '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)node_mksnapshot<(EXECUTABLE_SUFFIX)',
'mkcodecache_exec': '<(PRODUCT_DIR)/<(EXECUTABLE_PREFIX)mkcodecache<(EXECUTABLE_SUFFIX)',
'conditions': [
['GENERATOR == "ninja"', {
'node_text_start_object_path': 'src/large_pages/node_text_start.node_text_start.o'
}, {
'node_text_start_object_path': 'node_text_start/src/large_pages/node_text_start.o'
}],
[ 'node_shared=="true"', {
'node_target_type%': 'shared_library',
'conditions': [
Expand Down Expand Up @@ -515,7 +520,7 @@
'target_arch=="x64"', {
'dependencies': [ 'node_text_start' ],
'ldflags+': [
'<(PRODUCT_DIR)/obj.target/node_text_start/src/large_pages/node_text_start.o'
'<(obj_dir)/<(node_text_start_object_path)'
]
}],
],
Expand Down

0 comments on commit 9c1ac50

Please sign in to comment.