diff --git a/.github/workflows/bun.yml b/.github/workflows/bun.yml index 1618b74074..01fbb558a9 100644 --- a/.github/workflows/bun.yml +++ b/.github/workflows/bun.yml @@ -218,7 +218,7 @@ jobs: OBJ_DIR: ${{ runner.temp }}/bun-cpp-obj BUN_DEPS_OUT_DIR: ${{runner.temp}}/bun-deps run: | - brew install rust llvm@13 pkg-config coreutils libtool go cmake libiconv automake openssl@1.1 ninja gnu-sed pkg-config esbuild --force + brew install rust llvm@13 pkg-config coreutils libtool cmake libiconv automake openssl@1.1 ninja gnu-sed pkg-config esbuild --force echo "export PATH=$(brew --prefix coreutils)/libexec/gnubin:\$PATH" >> $GITHUB_ENV echo "export PATH=$(brew --prefix llvm@13)/bin:\$PATH" >> $GITHUB_ENV brew link --overwrite llvm@13 diff --git a/Makefile b/Makefile index 9e4987bc91..6c54185a34 100644 --- a/Makefile +++ b/Makefile @@ -434,6 +434,9 @@ base64: # Prevent dependency on libtcc1 so it doesn't do filesystem lookups TINYCC_CFLAGS= -DTCC_LIBTCC1=\"\0\" +# TinyCC needs to run some compiled code after it's been compiled. +# That means we can't compile for a newer microarchitecture than native +# We compile for an older microarchitecture on x64 to ensure compatibility .PHONY: tinycc tinycc: cd $(TINYCC_DIR) && \