Commit 48d4ed6
committed
Compile AU sources with -ObjC++
DPF's DistrhoPluginAU.cpp uses Objective-C++ syntax (NSString,
[obj method] sends, @Class) despite the .cpp extension, and
DistrhoUIMain.cpp transitively pulls in DistrhoUIAU.mm when built
with -DDISTRHO_PLUGIN_TARGET_AU. Both fail to compile as plain C++
on macOS the moment they hit <Foundation/Foundation.h>.
Add target-specific BUILD_CXX_FLAGS += -ObjC++ for the two _AU.cpp.o
targets. Target-specific augmentation, not modification of the
generic pattern rule, so the _VST2 / _VST3 / _CLAP / _LV2 / _JACK
variants keep being compiled as plain C++. Matches upstream
Makefile.plugins.mk:601,605.1 parent 7c6373b commit 48d4ed6
1 file changed
Lines changed: 10 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
231 | 231 | | |
232 | 232 | | |
233 | 233 | | |
| 234 | + | |
| 235 | + | |
| 236 | + | |
| 237 | + | |
| 238 | + | |
| 239 | + | |
| 240 | + | |
| 241 | + | |
| 242 | + | |
| 243 | + | |
234 | 244 | | |
235 | 245 | | |
236 | 246 | | |
| |||
0 commit comments