[libc-commits] [libc] 3d2165f - [libc][NFC] Remove "$>" from recipe commands blocks in examples/README.md.
Siva Chandra Reddy via libc-commits
libc-commits at lists.llvm.org
Fri Nov 4 01:36:14 PDT 2022
Author: Siva Chandra Reddy
Date: 2022-11-04T08:35:39Z
New Revision: 3d2165f7381644ff2b26523d36ff250949e9a049
URL: https://github.com/llvm/llvm-project/commit/3d2165f7381644ff2b26523d36ff250949e9a049
DIFF: https://github.com/llvm/llvm-project/commit/3d2165f7381644ff2b26523d36ff250949e9a049.diff
LOG: [libc][NFC] Remove "$>" from recipe commands blocks in examples/README.md.
The blocks come with a copy button so removing the "$>" makes it easy to
copy paste the commands.
Added:
Modified:
libc/examples/README.md
Removed:
################################################################################
diff --git a/libc/examples/README.md b/libc/examples/README.md
index 5d6cb9489ae6..ea82c5caf923 100644
--- a/libc/examples/README.md
+++ b/libc/examples/README.md
@@ -35,14 +35,14 @@ in which the static archive is installed with the option
`LIBC_OVERLAY_ARCHIVE_DIR`:
```bash
-$> cmake ../ -G <GEN> \
- -DLIBC_OVERLAY_ARCHIVE_DIR=<dir in which libc is installed>
+cmake ../ -G <GEN> \
+ -DLIBC_OVERLAY_ARCHIVE_DIR=<dir in which libc is installed>
```
Next, if `Ninja` is used for `<GEN>`, you can build the example as follows:
```bash
-$> ninja <example name>
+ninja <example name>
```
Building against a full libc
@@ -59,10 +59,10 @@ have installed them, you have to inform CMake that we are linking against the
full libc as follows:
```bash
-$> cmake ../ -G <GEN> -DLIBC_FULLBUILD=ON \
- -DCMAKE_SYSROOT=<SYSROOT> \
- -DCMAKE_C_COMPILER=<SYSROOT>/bin/clang \
- -DCMAKE_TRY_COMPILE_TARGET_TYPE=STATIC_LIBRARY
+cmake ../ -G <GEN> -DLIBC_FULLBUILD=ON \
+ -DCMAKE_SYSROOT=<SYSROOT> \
+ -DCMAKE_C_COMPILER=<SYSROOT>/bin/clang \
+ -DCMAKE_TRY_COMPILE_TARGET_TYPE=STATIC_LIBRARY
```
`<SYSROOT>` is the path to the sysroot directory you have set up while
@@ -75,5 +75,5 @@ the example as follows:
```bash
-$> ninja <example name>
+ninja <example name>
```
More information about the libc-commits
mailing list