summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--doc/manual.md6
1 files changed, 6 insertions, 0 deletions
diff --git a/doc/manual.md b/doc/manual.md
index 31e69d0ac..2b982488f 100644
--- a/doc/manual.md
+++ b/doc/manual.md
@@ -7597,10 +7597,16 @@ Compile pragma
 The `compile` pragma can be used to compile and link a C/C++ source file
 with the project:
 
+This pragma can take three forms. The first is a simple file input:
   ```Nim
   {.compile: "myfile.cpp".}
   ```
 
+The second form is a tuple where the second arg is the output name strutils formatter:
+  ```Nim
+  {.compile: ("file.c", "$1.o").}
+  ```
+
 **Note**: Nim computes a SHA1 checksum and only recompiles the file if it
 has changed. One can use the `-f`:option: command-line option to force
 the recompilation of the file.