[clang][AIX] Only export libclang.map symbols from libclang (#78748)
This will prevent unnecessary symbols being exported in libclang, which could cause issues with non-unique objects.
This commit is contained in:
parent
1e2a4ccb62
commit
02aa6956b5
@ -1,4 +1,3 @@
|
||||
// XFAIL: target={{.*}}-aix{{.*}}
|
||||
// RUN: c-index-test core -print-source-symbols -- %s -target x86_64-apple-macosx10.7 | FileCheck %s
|
||||
|
||||
struct MyStruct {
|
||||
|
@ -1,4 +1,3 @@
|
||||
// XFAIL: target={{.*}}-aix{{.*}}
|
||||
// RUN: c-index-test core -print-source-symbols -- %s -target x86_64-apple-macosx10.7 | FileCheck %s
|
||||
|
||||
#define GEN_DECL_USR(mod_name, usr) __attribute__((external_source_symbol(language="Swift", defined_in=mod_name, USR=usr, generated_declaration)))
|
||||
|
@ -1,4 +1,3 @@
|
||||
// XFAIL: target={{.*}}-aix{{.*}}
|
||||
// RUN: c-index-test core -print-source-symbols -- %s -target x86_64-apple-macosx10.7 | FileCheck %s
|
||||
|
||||
#define EXT_DECL(mod_name) __attribute__((external_source_symbol(language="Swift", defined_in=mod_name)))
|
||||
|
@ -1,4 +1,3 @@
|
||||
// XFAIL: target={{.*}}-aix{{.*}}
|
||||
// RUN: c-index-test core -print-source-symbols -- %s -std=c++14 -target x86_64-apple-macosx10.7 | FileCheck %s
|
||||
|
||||
int invalid;
|
||||
|
@ -1,4 +1,3 @@
|
||||
// XFAIL: target={{.*}}-aix{{.*}}
|
||||
// RUN: c-index-test core -print-source-symbols -- %s -std=c++14 -target x86_64-apple-macosx10.7 | FileCheck %s
|
||||
// References to declarations in instantiations should be canonicalized:
|
||||
|
||||
|
@ -1,4 +1,3 @@
|
||||
// XFAIL: target={{.*}}-aix{{.*}}
|
||||
// RUN: c-index-test core -print-source-symbols -- %s -std=c++1z -target x86_64-apple-macosx10.7 | FileCheck %s
|
||||
|
||||
namespace rdar32474406 {
|
||||
|
@ -1,4 +1,3 @@
|
||||
// XFAIL: target={{.*}}-aix{{.*}}
|
||||
// RUN: c-index-test core -print-source-symbols -- %s -std=c++1z -target x86_64-apple-macosx10.7 | FileCheck %s
|
||||
// RUN: c-index-test core -print-source-symbols -include-locals -- %s -std=c++1z -target x86_64-apple-macosx10.7 | FileCheck -check-prefix=LOCAL %s
|
||||
|
||||
|
@ -1,4 +1,3 @@
|
||||
// XFAIL: target={{.*}}-aix{{.*}}
|
||||
// RUN: c-index-test core -print-source-symbols -- %s -target x86_64-apple-macosx10.7 | FileCheck %s
|
||||
// RUN: c-index-test core -print-source-symbols -include-locals -- %s -target x86_64-apple-macosx10.7 | FileCheck -check-prefix=LOCAL %s
|
||||
|
||||
|
@ -1,4 +1,3 @@
|
||||
// XFAIL: target={{.*}}-aix{{.*}}
|
||||
// RUN: c-index-test core -print-source-symbols -- %s -target x86_64-apple-macosx10.7 | FileCheck %s
|
||||
|
||||
@interface MyCls
|
||||
|
@ -1,4 +1,3 @@
|
||||
// XFAIL: target={{.*}}-aix{{.*}}
|
||||
// RUN: c-index-test core -print-source-symbols -- %s -target x86_64-apple-macosx10.7 | FileCheck %s
|
||||
|
||||
// CHECK: [[@LINE+1]]:12 | class/ObjC | XCTestCase | c:objc(cs)XCTestCase | _OBJC_CLASS_$_XCTestCase | Decl | rel: 0
|
||||
|
@ -1,4 +1,3 @@
|
||||
// XFAIL: target={{.*}}-aix{{.*}}
|
||||
// RUN: rm -rf %t.mcp
|
||||
// RUN: c-index-test core -print-source-symbols -dump-imported-module-files -- %s -I %S/Inputs/module -fmodules -fmodules-cache-path=%t.mcp | FileCheck %s
|
||||
|
||||
|
@ -1,4 +1,3 @@
|
||||
// XFAIL: target={{.*}}-aix{{.*}}
|
||||
// RUN: c-index-test core -print-source-symbols -- -target x86_64-apple-darwin10 -fms-extensions -fno-ms-compatibility %s | FileCheck %s
|
||||
|
||||
// CHECK: [[@LINE+1]]:8 | struct/C++ | Simple | [[Simple_USR:.*]] | <no-cgname> | Def | rel: 0
|
||||
|
@ -1,4 +1,3 @@
|
||||
// XFAIL: target={{.*}}-aix{{.*}}
|
||||
// RUN: c-index-test core -print-source-symbols -- %s -target x86_64-unknown-unknown 2>&1 | FileCheck %s
|
||||
|
||||
namespace ns {
|
||||
|
@ -97,7 +97,7 @@ if(MSVC)
|
||||
set(LLVM_EXPORTED_SYMBOL_FILE)
|
||||
endif()
|
||||
|
||||
if (UNIX AND NOT APPLE)
|
||||
if (UNIX AND NOT APPLE AND NOT ${CMAKE_SYSTEM_NAME} MATCHES "AIX")
|
||||
set(LLVM_EXPORTED_SYMBOL_FILE)
|
||||
set(USE_VERSION_SCRIPT ${LLVM_HAVE_LINK_VERSION_SCRIPT})
|
||||
endif()
|
||||
@ -129,8 +129,9 @@ else()
|
||||
set(output_name "clang")
|
||||
endif()
|
||||
|
||||
# libclang requires headers which need _ALL_SOURCE to build on AIX
|
||||
if (UNIX AND ${CMAKE_SYSTEM_NAME} MATCHES "AIX")
|
||||
set(CMAKE_AIX_EXPORT_ALL_SYMBOLS OFF)
|
||||
# libclang requires headers which need _ALL_SOURCE to build on AIX
|
||||
remove_definitions("-D_XOPEN_SOURCE=700")
|
||||
endif()
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user