Skip to content

Commit

Permalink
Add make ponyc for building just ponyc. (#4394)
Browse files Browse the repository at this point in the history
Sometimes while working on a compiler bug, it's annoying to
rebuild lots of tests/runners/etc when just trying to make
a new version of the compiler to do some manual testing with it.

This PR adds `make ponyc` which only uses the `ponyc` CMake target,
rather than the `all` target. Everything else in the invocation is
the same as it is for `make build`.
  • Loading branch information
jemc authored Aug 11, 2023
1 parent b037d8a commit 81f5242
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,9 @@ all: build
build:
$(SILENT)cd '$(buildDir)' && env CC="$(CC)" CXX="$(CXX)" cmake --build '$(buildDir)' --config $(config) --target all -- $(build_flags)

ponyc:
$(SILENT)cd '$(buildDir)' && env CC="$(CC)" CXX="$(CXX)" cmake --build '$(buildDir)' --config $(config) --target ponyc -- $(build_flags)

crossBuildDir := $(srcDir)/build/$(arch)/build_$(config)

cross-libponyrt:
Expand Down

0 comments on commit 81f5242

Please sign in to comment.