diff options
author | Tor Lillqvist <tml@iki.fi> | 2013-09-03 16:50:50 +0300 |
---|---|---|
committer | Tor Lillqvist <tml@iki.fi> | 2013-09-03 17:38:53 +0300 |
commit | d81da41c9d121f5ec452545b686a71c51a117eed (patch) | |
tree | 33e3eb3987f0c0848012e570ec783667d3a02816 /sal/Library_sal.mk | |
parent | dd3293b83aa7bdb5688005d3906a0de536631487 (diff) |
Don't compile all of the sal library as Objective-C++ on OS X after all
I doubt it affects ABI, but let's not take the risk.
Instead, just compile the uunxapi.cxx file (which has no public API)
as Objective-C++, as that is now the only one where Objective-C API is
used.
This reverts part of d22c94dbf16d18bce39f060aa21f3083169426ca
Change-Id: I240dbb36529c419b81b062f6fe860a9e621c2400
Diffstat (limited to 'sal/Library_sal.mk')
-rw-r--r-- | sal/Library_sal.mk | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/sal/Library_sal.mk b/sal/Library_sal.mk index 093546fc9e0d..8024e3f5775f 100644 --- a/sal/Library_sal.mk +++ b/sal/Library_sal.mk @@ -123,7 +123,7 @@ $(eval $(call gb_Library_add_cobjects,sal,\ sal/osl/all/filepath \ )) -ifneq (,$(filter IOS MACOSX,$(OS))) +ifeq ($(OS),IOS) $(eval $(call gb_Library_add_cxxflags,sal,\ $(gb_OBJCXXFLAGS) \ )) @@ -162,7 +162,6 @@ $(eval $(call gb_Library_add_exception_objects,sal,\ sal/osl/unx/process \ sal/osl/unx/process_impl \ $(if $(filter DESKTOP,$(BUILD_TYPE)), sal/osl/unx/salinit) \ - sal/osl/unx/uunxapi \ )) $(eval $(call gb_Library_add_cobjects,sal,\ sal/osl/unx/mutex \ @@ -183,6 +182,17 @@ $(eval $(call gb_Library_add_cobject,sal,sal/osl/unx/signal, \ -DSAL_ENABLE_CRASH_REPORT) \ )) +# Note that the uunxapi.mm file just includes the uunxapi.cxx one +ifeq ($(OS),MACOSX) +$(eval $(call gb_Library_add_objcxxobjects,sal,\ + sal/osl/unx/uunxapi \ +)) +else +$(eval $(call gb_Library_add_exception_objects,sal,\ + sal/osl/unx/uunxapi \ +)) +endif + ifneq ($(filter $(OS),MACOSX IOS),) $(eval $(call gb_Library_add_exception_objects,sal,\ sal/osl/unx/osxlocale \ |