[clang] [clang-repl] Teach clang-repl how to load PCHs. (PR #94166)
Lang Hames via cfe-commits
cfe-commits at lists.llvm.org
Mon Jun 10 04:41:08 PDT 2024
================
@@ -0,0 +1,14 @@
+// REQUIRES: host-supports-jit
+// UNSUPPORTED: system-aix
+
+// RUN: rm -f %t.pch
+// RUN: %clang_cc1 -fmax-type-align=16 -pic-level 2 -fdeprecated-macro -stack-protector 1 -fblocks -fskip-odr-check-in-gmf -fexceptions -fcxx-exceptions -fgnuc-version=0 -triple=%target_triple -DPCH -fincremental-extensions -emit-pch -x c++-header -o %t.pch %s
+// RUN: clang-repl -Xcc -fgnuc-version=0 -Xcc -triple=%target_triple -Xcc -include-pch -Xcc %t.pch '#include "%s"' | FileCheck %s
----------------
lhames wrote:
When `-triple` is passed explicitly I'd expect it to override the process triple. Is there a reason not to do that?
https://github.com/llvm/llvm-project/pull/94166
More information about the cfe-commits
mailing list