diff --git a/README.md b/README.md index 7d32237..aa98974 100644 --- a/README.md +++ b/README.md @@ -209,12 +209,13 @@ The examples can also run under tslang's JIT, against the shared build of the in (`run_jit.bat examples/.ts [-- args]` does this from the repo root): ``` -tslang --emit=jit --jit-cache=false --shared-libs=build/bin/donut_interop.dll examples/basic_triangle.ts -- -dx12 +tslang --emit=jit --shared-libs=build/bin/donut_interop.dll examples/basic_triangle.ts -- -dx12 ``` - Program arguments go after `--`. -- `--jit-cache=false`: tslang pre-alpha93's JIT cache crashes in a run that compiles two or more - modules, so an example (with its imports) crashed on its first two runs +- The JIT caches each compiled module in a `__jit` folder next to its source (ignored by git). A + module is compiled again when it, a file it imports, its options or tslang change. Needs + pre-alpha94 or later: pre-alpha93's cache crashed a run that compiled two or more modules ([TypeScriptCompiler#548](https://github.com/ASDAlexander77/TypeScriptCompiler/pull/548)). - The shared library also holds the C++ modules some examples link (`core/sdkmesh.cpp`, `core/meshlet_model.cpp`, `core/paged_images.cpp`, ...), and applies the D3D12 Agility SDK diff --git a/run_jit.bat b/run_jit.bat index ac53a84..3778976 100644 --- a/run_jit.bat +++ b/run_jit.bat @@ -5,7 +5,5 @@ @pushd %~dp0 rem set D=build-release-dlss/bin set D=build/bin -@rem --jit-cache=false: tslang pre-alpha93's JIT cache crashes (0xC0000005) in a run that compiles -@rem two or more modules (TypeScriptCompiler#548): an example's first two runs, with its imports. -tslang --jit-cache=false --shared-libs=%D%/donut_interop.dll %* +tslang --shared-libs=%D%/donut_interop.dll %* @popd