aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xemcc8
1 files changed, 6 insertions, 2 deletions
diff --git a/emcc b/emcc
index 6f68a355..e78b1416 100755
--- a/emcc
+++ b/emcc
@@ -203,8 +203,12 @@ Options that are modified or new in %s include:
--embed-file <file> A file to embed inside the generated
JavaScript. The compiled code will be able
to access the file in the current directory
- with the same basename as given here (that is,
- just the filename, without a path to it).
+ with the same name as given here. So if
+ you do --embed-file dir/file.dat, then
+ (1) dir/file.dat must exist relative to
+ where you run emcc, and (2) your compiled
+ code will be able to find the file by
+ reading that same path, dir/file.dat.
If a directory is passed here, its entire
contents will be embedded.