[flang-commits] [clang] [flang] [flang] Add -mlink-builtin-bitcode option to fc1 (PR #94763)

Jan Leyonberg via flang-commits flang-commits at lists.llvm.org
Tue Jun 11 07:24:04 PDT 2024


================
@@ -0,0 +1,18 @@
+
+!----------
+! RUN lines
+!----------
+! Embed something that can be easily checked
+! RUN: %flang_fc1 -emit-llvm -triple x86_64-unknown-linux-gnu -o - -mlink-builtin-bitcode %S/Inputs/bclib.bc %s 2>&1 | FileCheck %s
+
+! CHECK: define internal void @libfun_
+
+! RUN1: not %flang_fc1 -emit-llvm -triple x86_64-unknown-linux-gnu -o - -mlink-builtin-bitcode %S/Inputs/no-bclib.bc %s 2>&1 | FileCheck %s
----------------
jsjodin wrote:

My mistake, I was testing things out and it got in.

https://github.com/llvm/llvm-project/pull/94763


More information about the flang-commits mailing list