[compiler-rt] [memprof] check path in opendir interceptor (PR #221309)
Ellis Hoag via llvm-commits
llvm-commits at lists.llvm.org
Fri Sep 4 11:53:41 PDT 2026
================
@@ -0,0 +1,16 @@
+// REQUIRES: linux
+
+// RUN: %clangxx -fno-sanitize=all -DSHARED_LIB -fPIC -shared %s -o %t.so
+// RUN: %clangxx %s -o %t
+// RUN: env LD_PRELOAD=%t.so %run %t
+
+#include <dirent.h>
+
+#if defined(SHARED_LIB)
----------------
ellishg wrote:
We should be using `split-file` rather than `SHARED_LIB` to select which code to compile.
https://github.com/llvm/llvm-project/pull/221309
More information about the llvm-commits
mailing list