From 222f3e6130649b6b7da197308c77b0fe026694d4 Mon Sep 17 00:00:00 2001 From: pixel <35269695+pixelcmtd@users.noreply.github.com> Date: Thu, 9 Sep 2021 21:55:54 +0200 Subject: [PATCH] clang: add -c example (#6494) --- pages/common/clang.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/pages/common/clang.md b/pages/common/clang.md index 0a139371d5..cb99409e0e 100644 --- a/pages/common/clang.md +++ b/pages/common/clang.md @@ -18,3 +18,7 @@ - Compile source code into LLVM Intermediate Representation (IR): `clang -S -emit-llvm {{file.c}} -o {{file.ll}}` + +- Compile source code without linking: + +`clang -c {{input_source.c}}`