From 0ac7972e0c86ce19a2d58b4fa51e151a571bf4f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B8=85=E8=BE=9E?= Date: Thu, 27 May 2021 14:26:38 +0800 Subject: [PATCH] Update demo.md clarify the clang_prefix --- docs/demo/demo.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/demo/demo.md b/docs/demo/demo.md index 99e842e7..d6d33adf 100644 --- a/docs/demo/demo.md +++ b/docs/demo/demo.md @@ -145,7 +145,9 @@ fx build Fuchsia build conveniently generates a size report. Let's copy it for reference. -**Note** The `--args=clang_embed_bitcode=true` option above adds the compilation +**Note** +The `clang_prefix` is the absolute path of $LLVM_INSTALLDIR/bin(replace it by yours). +The `--args=clang_embed_bitcode=true` option above adds the compilation flag `-Xclang=-fembed-bitcode=all`. This can be seen in the compilation database. The effect of this is that the object files have the llvm bytecode produced by clang, before the optimization passes, and the clang command line, captured in