From b8413d515c93301ff6727245240587ae96013528 Mon Sep 17 00:00:00 2001 From: Ian A Mason Date: Fri, 9 Oct 2020 15:35:55 -0700 Subject: [PATCH] Update README.md A warning to the wise. --- README.md | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README.md b/README.md index fe7f986..3a5a0f4 100644 --- a/README.md +++ b/README.md @@ -243,6 +243,14 @@ produces the bitcode. This can be fulfilled by setting the `LLVM_BITCODE_GENERATION_FLAGS` environment variable to the desired flags, for example `"-flto -fwhole-program-vtables"`. +## Beware of link time optimization. + +If the package you are building happens to take advantage of recent `clang` developments +such as *link time optimization* (indicated by the presence of compiler flag `-flto`), then +your build is unlikely to produce anything that `get-bc` will work on. This is to be +expected. + + ## License