Commit 54dbf5c
committed
Merge pull request #1344 from dilijev:static
(Request from TypeScript team.)
This enables us to support running applications developed against
ChakraCore.dll even if the C++ Runtime is not installed on the machine.
Add this to Build/Chakra.Build.Default.props to set the flag for the entire
build. If the user wishes to dynamically link the C++ Runtime, build with e.g.
msbuild ... "/p:RuntimeLib=dynamic_library"
(or any other value for RuntimeLib) to disable the static linking.
Confirmed that ch.exe is now able to run a hello.js file on a machine without
the C++ Runtime installed. (Dynamically linked ChakraCore.dll fails on the same
machine complaining of missing DLLs.)
Note:
* Increases x64_debug ChakraCore.dll size by about 1MB.
* Increases x64_release ChakraCore.dll size by about 100KB.
* Increases x64_release_pogo ChakraCore.dll size by about 150KB.
File tree
3 files changed
+6
-4
lines changed- Build
- bin/ch
- lib/Common/Core
3 files changed
+6
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
10 | 13 | | |
11 | 14 | | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
65 | 65 | | |
66 | 66 | | |
67 | 67 | | |
| 68 | + | |
68 | 69 | | |
69 | 70 | | |
70 | 71 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
| 55 | + | |
55 | 56 | | |
56 | 57 | | |
57 | 58 | | |
| |||
344 | 345 | | |
345 | 346 | | |
346 | 347 | | |
347 | | - | |
348 | | - | |
349 | | - | |
350 | | - | |
| 348 | + | |
351 | 349 | | |
352 | 350 | | |
353 | 351 | | |
| |||
0 commit comments