Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit b3f2045

Browse filesBrowse files
deepak1556targos
authored andcommitted
build: gyp exclude libm linking on macOS
PR-URL: #56901 Reviewed-By: Joyee Cheung <joyeec9h3@gmail.com> Reviewed-By: Chengzhong Wu <legendecas@gmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Shelley Vohr <shelley.vohr@gmail.com>
1 parent e0dd9ae commit b3f2045
Copy full SHA for b3f2045

File tree

Expand file treeCollapse file tree

2 files changed

+9
-4
lines changed
Open diff view settings
Filter options
Expand file treeCollapse file tree

2 files changed

+9
-4
lines changed
Open diff view settings
Collapse file

‎deps/brotli/brotli.gyp‎

Copy file name to clipboardExpand all lines: deps/brotli/brotli.gyp
+4-3Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,14 +59,15 @@
5959
'defines': [
6060
'OS_MACOSX'
6161
]
62+
}, {
63+
'libraries': [
64+
'-lm',
65+
],
6266
}],
6367
],
6468
'direct_dependent_settings': {
6569
'include_dirs': [ 'c/include' ]
6670
},
67-
'libraries': [
68-
'-lm',
69-
],
7071
'sources': [
7172
'<@(brotli_sources)',
7273
]
Collapse file

‎deps/uv/uv.gyp‎

Copy file name to clipboardExpand all lines: deps/uv/uv.gyp
+5-1Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -220,7 +220,6 @@
220220
'<@(uv_sources_posix)',
221221
],
222222
'link_settings': {
223-
'libraries': [ '-lm' ],
224223
'conditions': [
225224
['OS=="solaris"', {
226225
'ldflags': [ '-pthreads' ],
@@ -231,6 +230,11 @@
231230
['OS != "solaris" and OS != "android" and OS != "zos"', {
232231
'ldflags': [ '-pthread' ],
233232
}],
233+
['OS!="mac"', {
234+
'libraries': [
235+
'-lm'
236+
],
237+
}],
234238
],
235239
},
236240
'conditions': [

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.