4 Commits

Author SHA1 Message Date
Anubhab Ghosh
e037880b8e [clang-repl] Only enable dynamic-library test on x86_64
This test includes a precompiled library for x86_64 Linux
2023-04-26 09:46:38 +05:30
Anubhab Ghosh
7f96ce5e13 [clang-repl] Fix dynamic library test to avoid cstdio and linker
Some platforms do not have a working linker present. The goal is to
only test the loading of a shared library in clang-repl. A precompiled
library is used instead.

The cstdio header may also not be present. We only need printf.

Related discussion in D141824

Differential Revision: https://reviews.llvm.org/D148992
2023-04-26 09:11:09 +05:30
Douglas Yung
389e93cfcd Mark test added in D141824 as unsupported for PS4/PS5 as those platforms require an external linker that is not present. 2023-03-29 12:09:28 -07:00
Anubhab Ghosh
d978730d8e [clang-repl] Add a command to load dynamic libraries
This commit adds the %lib <file> command to load a dynamic library to be
used by the currently running interpreted code.
For example `%lib libSDL2.so`.

Differential Revision: https://reviews.llvm.org/D141824
2023-03-29 08:04:50 +05:30