Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
runtime Makefile: Do not resolve variables when writing a dependency …
…file (#2538) This is an attempt to fix a confusing situation where a user: 1. Builds the runtime with clang that does not support wasm32-wasi 2. Attempts to rebuild the runtime by passing the CC parameter pointing to another installation of clang that does support wasm32-wasi. In step 1. the runtime Makefile generates dependencies files which contain the resolved value of `$(CC)`. When the user passes the correct `CC` variable to the Makefile in step 2., the dependencies files are not regenerated, the old value of `CC` is used in the build and the build continues to fail. In this PR we change the dependency file generation so that the variables like `$(CC)` are written into the dependency file verbatim. They are resolved when they are run in step 2. using the new value of the CC parameter. * Closes #2537
- Loading branch information