This patch renames values of dsymutil/llvm-dwarfutil options: --linker apple -> --linker classic --linker llvm -> --linker parallel The purpose to rename options is to avoid using vendor names and to match with library names. It should be safe to rename options at current stage as they are not seemed widely used(we may not preserve backward compatibility).
28 lines
778 B
Plaintext
28 lines
778 B
Plaintext
$ cat foo.cpp
|
|
struct nontrivial {
|
|
nontrivial() { }
|
|
};
|
|
|
|
void function2()
|
|
{
|
|
static const nontrivial magic_static;
|
|
}
|
|
|
|
$ cat bar.cpp
|
|
void function2();
|
|
|
|
void function1()
|
|
{
|
|
function2();
|
|
}
|
|
|
|
$ xcrun clang++ -g -flto=thin -O2 foo.cpp bar.cpp -c
|
|
$ xcrun clang++ -flto=thin foo.o bar.o -Xlinker -object_path_lto -Xlinker lto -shared -o foobar.dylib
|
|
|
|
RUN: dsymutil -oso-prepend-path %p/../Inputs %p/../Inputs/private/tmp/thinlto/foobar.dylib -o %t.dSYM 2>&1 | FileCheck %s --allow-empty
|
|
|
|
RUN: dsymutil --linker parallel -oso-prepend-path %p/../Inputs %p/../Inputs/private/tmp/thinlto/foobar.dylib -o %t.dSYM 2>&1 | FileCheck %s --allow-empty
|
|
|
|
CHECK-NOT: could not find symbol '__ZZ9function2vE12magic_static'
|
|
CHECK-NOT: could not find symbol 'symbol __ZGVZ9function2vE12magic_static'
|