#What's the correct way to build the compiler after you do git pull?

1 messages · Page 1 of 1 (latest)

plucky grove
#

I am interested to save any useless action, like deleting the builds done by CMake or deleting local or global cache. Currently my steps are:

  1. Delete CMake builds
  2. Delete local cache
  3. Delete global cache
  4. Delete stage4

I wonder how many of these steps can be saved and if stage1.wasm being modified affects the amount of steps done. Thank you very much.

modern pilot
#

the important step after git pull is to rerun the cmake cmd or
touch ../CmakeLists.txt— this will ensure it encodes the correct git version + rebuild any .c files necessary

> git pull
<git pull info here>
> touch ../CMakeLists.txt
> ninja
[0/1] Re-running CMake...
-- Configuring zig version 0.11.0-dev.2938+e963793e3
-- Configuring done (0.1s)
-- Generating done (0.0s)
-- Build files have been written to: /home/rad/lab/zig/build
[3/6] Building C object CMakeFiles/zig2.dir/compiler_rt.c.o
plucky grove
#

I see, thanks 🙂

#

there's no way around building the Cmake version again, right?

#

uh oh

modern pilot
#

could be OOM

plucky grove
#

yeah, probably. I am building debug and release 😛