1
1
mirror of https://github.com/anoma/juvix.git synced 2024-12-04 17:07:28 +03:00
juvix/runtime
Paul Cadman d8027fc843
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 https://github.com/anoma/juvix/issues/2537
2023-11-27 10:14:20 +01:00
..
src Update clang formatting (#2465) 2023-10-23 19:12:56 +02:00
Makefile Juvix C runtime (#1580) 2022-11-03 09:38:09 +01:00
Makefile.generic runtime Makefile: Do not resolve variables when writing a dependency file (#2538) 2023-11-27 10:14:20 +01:00
PROJECT Juvix C runtime (#1580) 2022-11-03 09:38:09 +01:00