Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add initial support for building AOO with Clang on Linux.
This allows Ubuntu 16.04 to compile AOO with Clang 1.8 on an x86. Other architectures probably don't work, as Clang 1.8 is pretty strict about the low-level C++ ABI hacks in main/bridges, but at least they should fail early in main/bridges instead of the previous behaviour, where main/bridges compiles nothing when "$(COM)" != "GCC" and main/i18npool then fails with a mysterious "error: cannot get uno environments" message. Patch by: me git-svn-id: https://svn.apache.org/repos/asf/openoffice/trunk@1782030 13f79535-47bb-0310-9956-ffa450edef68
- Loading branch information
Damjan Jovanovic
committed
Feb 7, 2017
1 parent
0c223f2
commit bcc22a4
Showing
28 changed files
with
162 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
--- misc/build/CoinMP-1.7.6/Cbc/src/Cbc_C_Interface.cpp 2013-04-10 18:58:16.000000000 +0200 | ||
+++ misc/build/CoinMP-1.7.6/Cbc/src/Cbc_C_Interface.cpp 2017-02-06 20:39:00.267698261 +0200 | ||
@@ -376,7 +376,7 @@ | ||
|
||
char * result = model->information_; | ||
|
||
- if (VERBOSE > 0) printf("%s return %p\n", prefix, result); | ||
+ if (VERBOSE > 0) printf("%s return %p\n", prefix, static_cast<void*>(result)); | ||
return result; | ||
} | ||
/* Copy in integer information */ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
/************************************************************** | ||
* | ||
* Licensed to the Apache Software Foundation (ASF) under one | ||
* or more contributor license agreements. See the NOTICE file | ||
* distributed with this work for additional information | ||
* regarding copyright ownership. The ASF licenses this file | ||
* to you under the Apache License, Version 2.0 (the | ||
* "License"); you may not use this file except in compliance | ||
* with the License. You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, | ||
* software distributed under the License is distributed on an | ||
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY | ||
* KIND, either express or implied. See the License for the | ||
* specific language governing permissions and limitations | ||
* under the License. | ||
* | ||
*************************************************************/ | ||
|
||
|
||
|
||
// MARKER(update_precomp.py): autogen include statement, do not remove | ||
#include "precompiled_bridges.hxx" | ||
|
||
#include <typeinfo> | ||
#include <cstddef> | ||
|
||
#include <uno/any2.h> | ||
#include <cppu/macros.hxx> | ||
|
||
#include "share.hxx" | ||
|
||
// At least Clang 3.8 can't compile our CPPU_CURRENT_NAMESPACE::__cxa_get_globals() | ||
// decleration with <exception> or anything else that indirectly includes <cxxabi.h> | ||
// included, as it sees it as a an overload of __cxxabi::__cxa_get_globals() with a | ||
// different return type. Thus, it has to be placed in a file that doesn't include | ||
// those, and wrapped in a function: | ||
namespace CPPU_CURRENT_NAMESPACE | ||
{ | ||
extern "C" __cxa_eh_globals *__cxa_get_globals () throw(); | ||
|
||
__cxa_eh_globals *__INTERNAL__cxa_get_globals() throw() | ||
{ | ||
return __cxa_get_globals(); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.