Enhance the rebuild logic of the bootstrap
@DrXiao ya está trabajando en esto.
Desde el 18/10/2026.
Evaluación
Este issue todavía no se ha evaluado.
Descripción
On the latest master branch, running make always triggers a rebuild, even after the bootstrap process has completed:
# The first execution builds the stage 0 ~ stage 2 compilers. (Expected)
$ make
Target machine code switch to arm
CC out/src/main.o
...
Warning: discarding const qualifier in cast
# The second execution triggers a rebuild,
# even though ARCH/DYNLINK/BINDING remain unchanged. (Unexpected)
$ make
Target machine code switch to arm
CC out/src/main.o
...
Warning: discarding const qualifier in cast
Root cause
The current Makefile appears to have the following dependency relationships:
- The
alltarget relies on theconfigandbootstraptargets - The
configtarget is phony, so it runs every timemakeis invoked.- Each invocation of the
configtarget updates theconfigfile because theTRANSLATION_DEFSvariable differs between invocations.
https://github.com/sysprog21/shecc/blob/90c6e6870fd1e62f0234ad7d951d40c17c80f29e/Makefile#L176-L184
- Each invocation of the
- The
bootstraptarget indirectly depends on the auto-generatedconfigfile.
As a result, every invocation of make updates the config file, causing the bootstrap target to run again.
- Lenguaje dominante
- C
- Estrellas
- 1.4k
- Forks
- 168
- Merge medio
- 2 d 22 h
- PR fusionados (30 d)
- 3
Preparar el entorno
- Sin Dockerfile ni archivo de Docker Compose
- Sin plantilla de pull request
- Leer la guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de sysprog21/shecc
-
Dificultad 4/5 3-5 días Aptitud para principiantes 38/100
-
enhancement
Dificultad 5/5 Más de una semana Aptitud para principiantes 30/100
-
Import a GitHub Action for benchmarking purposesPosiblemente ocupada @DrXiao la tomó hace 443 días. Abierto
sysprog21/shecc#236 · 2 comentarios · 1 reacción · 1 asignado ·
Todos los issues de sysprog21/shecc
Issues similares
-
[mimalloc] update to 3.6.0Abiertocategory:port-update
Dificultad 2/5 1-3 horas Aptitud para principiantes 66/100
Los mantenedores suelen responder en 2 días
-
emerge failure MARK mark-unstable media-kit
Dificultad 2/5 1-3 horas Aptitud para principiantes 82/100
macaroni-os/mark-issues#834 ·
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 76/100
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 93/100
webarkit/WebARKitLib#107 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
Los mantenedores suelen responder en 1 día