diff options
Diffstat (limited to 'emcc')
-rwxr-xr-x | emcc | 8 |
1 files changed, 6 insertions, 2 deletions
@@ -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. |