diff options
author | Nico Weber <nicolasweber@gmx.de> | 2019-01-05 01:39:18 +0000 |
---|---|---|
committer | Nico Weber <nicolasweber@gmx.de> | 2019-01-05 01:39:18 +0000 |
commit | 8400becec5df4023f6f18d28a53d75620425698b (patch) | |
tree | b4130d820ca4821976fd7f7c5d99d14e6589703c /lldb/packages/Python/lldbsuite/test/expression_command/call-function/TestCallStdStringFunction.py | |
parent | b215d0731a54325f5fd8e0dae41415a6446ec6ff (diff) | |
download | bcm5719-llvm-8400becec5df4023f6f18d28a53d75620425698b.tar.gz bcm5719-llvm-8400becec5df4023f6f18d28a53d75620425698b.zip |
[gn build] Add build files for unittests that load shared libraries
This is slightly ugly for three reasons:
- The shlib needs to go next to the binary to be found on all platforms, so the
build files refer to target_out_dir
- The explicit -fPIC flag needed on the shared lib side, and the -rdynamic flag
needed on the host side, on Linux
- Plugins that refer to LLVM code and assume that the host will resolve them
don't work on Windows -- PluginsTests won't test anything on Windows (but
DynamicLibraryTests will, since the dll here doesn't call LLVM code)
If we get lots more of these plugin / plugin host targets it might make sense
to add a template for them. But for now, these are the last ones we need.
(We're at 6 plugin hosts, 2 of them tests, and at 6 shared libraries, 2 of them
tests as well. clang is a plugin host by default in the CMake build but not
(yet?) in the GN build.)
Differential Revision: https://reviews.llvm.org/D56330
llvm-svn: 350454
Diffstat (limited to 'lldb/packages/Python/lldbsuite/test/expression_command/call-function/TestCallStdStringFunction.py')
0 files changed, 0 insertions, 0 deletions