Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
build: fix missing winmm dependency in libnode
when compiling windows dll (shared mode), v8_libbase.vcxproj requires
winmm.lib which are not being picked up by libnode. In the normal mode
it is picked up via another dependency route. However, in the shared
mode, the indirect dependency is not added.

Fixes: #28845
  • Loading branch information
davidhouweling committed Feb 4, 2020
commit 114680f6c3f311d102bcc34c54009b0dbd9c8725
1 change: 1 addition & 0 deletions node.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -746,6 +746,7 @@
'libraries': [
'Dbghelp',
'Psapi',
'Winmm',
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If this is necessary to build v8_base, shouldn't this be placed in the v8 gypfiles? cc @targos @ryzokuken

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Possibly. What exactly in V8 uses Winmm APIs?

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

#28845 (comment) was the initial explanation as to why I had to add it at this level, so potentially there is something wrong in the gyp configuration of v8?

Regarding what is using it exactly, it's the use of __imp_timeGetTime. From the errors (as shown in #28845 (comment)) I Googled it and the solution was to add Winmm.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this blocking?

],
}],
[ 'node_use_etw=="true"', {
Expand Down