[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
Mon Jun 10 07:49:57 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
----------------
jsjodin wrote:

The triple matters because when linking the data layout in bclib.bc must match the data layout of the compiled source code, and depending on the host it may not be the same so it is safest to specify the triple to ensure they are the same.

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


More information about the flang-commits mailing list