Skip to content

Commit 9d0b142

Browse files
Fixing Intel max builds
1 parent 0fcd23f commit 9d0b142

File tree

1 file changed

+2
-16
lines changed

1 file changed

+2
-16
lines changed

binding.gyp

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -69,14 +69,6 @@
6969
"defines": [
7070
"__STDC_CONSTANT_MACROS"
7171
],
72-
"cflags_cc!": [
73-
"-fno-rtti",
74-
"-fno-exceptions"
75-
],
76-
"cflags_cc": [
77-
"-std=c++11",
78-
"-fexceptions"
79-
],
8072
"include_dirs": [
8173
"<(module_root_dir)/ffmpeg/ffmpeg-ffprobe-shared-darwin-<(target_arch_override).<(ffmpeg_version)/include/"
8274
],
@@ -99,6 +91,8 @@
9991
},
10092
'xcode_settings': {
10193
'MACOSX_DEPLOYMENT_TARGET': '10.11',
94+
'OTHER_CFLAGS': ['-fno-rtti', '-fno-exceptions', '-arch <(target_arch_override)', '-v'],
95+
'OTHER_LDFLAGS': ['-arch <(target_arch_override)'],
10296
},
10397
"copies": [
10498
{
@@ -152,14 +146,6 @@
152146
}
153147
]
154148
}],
155-
['OS=="mac"', {
156-
"include_dirs" : [
157-
"/opt/homebrew/Cellar/ffmpeg/5.0/include"
158-
],
159-
"library_dirs": [
160-
"/opt/homebrew/Cellar/ffmpeg/5.0/lib",
161-
]
162-
}],
163149
]
164150
}]
165151
}

0 commit comments

Comments
 (0)