-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcflags.patch
More file actions
80 lines (79 loc) · 2.86 KB
/
Copy pathcflags.patch
File metadata and controls
80 lines (79 loc) · 2.86 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
--- node-v22.13.0/common.gypi~ 2025-01-06 22:51:43.000000000 +0100
+++ node-v22.13.0/common.gypi 2025-02-11 10:25:38.183327319 +0100
@@ -191,7 +191,7 @@
}],
],
},
- 'cflags': [ '-O3' ],
+ 'cflags': [],
'conditions': [
['enable_lto=="true"', {
'cflags': ['<(lto)'],
@@ -506,56 +506,6 @@
'cflags': [ '-I/usr/local/include' ],
'ldflags': [ '-Wl,-z,wxneeded' ],
}],
- ['_toolset=="host"', {
- 'conditions': [
- [ 'host_arch=="ia32"', {
- 'cflags': [ '-m32' ],
- 'ldflags': [ '-m32' ],
- }],
- [ 'host_arch=="x64"', {
- 'cflags': [ '-m64' ],
- 'ldflags': [ '-m64' ],
- }],
- [ 'host_arch=="ppc64" and OS not in "aix os400"', {
- 'conditions': [
- [ 'clang==0', {
- 'cflags': [ '-mminimal-toc' ],
- }],
- ],
- 'cflags': [ '-m64' ],
- 'ldflags': [ '-m64' ],
- }],
- [ 'host_arch=="s390x" and OS=="linux"', {
- 'cflags': [ '-m64', '-march=z196' ],
- 'ldflags': [ '-m64', '-march=z196' ],
- }],
- ],
- }],
- ['_toolset=="target"', {
- 'conditions': [
- [ 'target_arch=="ia32"', {
- 'cflags': [ '-m32' ],
- 'ldflags': [ '-m32' ],
- }],
- [ 'target_arch=="x64"', {
- 'cflags': [ '-m64' ],
- 'ldflags': [ '-m64' ],
- }],
- [ 'target_arch=="ppc64" and OS not in "aix os400"', {
- 'conditions': [
- [ 'clang==0', {
- 'cflags': [ '-mminimal-toc' ],
- }],
- ],
- 'cflags': [ '-m64' ],
- 'ldflags': [ '-m64' ],
- }],
- [ 'target_arch=="s390x" and OS=="linux"', {
- 'cflags': [ '-m64', '-march=z196' ],
- 'ldflags': [ '-m64', '-march=z196' ],
- }],
- ],
- }],
],
'conditions': [
[ 'OS=="solaris"', {
--- node-v22.13.0/tools/gyp/pylib/gyp/generator/ninja.py~ 2025-01-06 22:51:52.000000000 +0100
+++ node-v22.13.0/tools/gyp/pylib/gyp/generator/ninja.py 2025-02-11 10:27:01.979993961 +0100
@@ -2331,9 +2331,6 @@
command = CommandWithWrapper(
"CC", wrappers, QuoteShellArgument(path, "win")
)
- if clang_cl:
- # Use clang-cl to cross-compile for x86 or x86_64.
- command += " -m32" if arch == "x86" else " -m64"
master_ninja.variable("cl_" + arch, command)
cc = GetEnvironFallback(["CC_target", "CC"], cc)