Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions .github/workflows/win.yml
Original file line number Diff line number Diff line change
Expand Up @@ -330,6 +330,9 @@ jobs:
Add-Content $env:GITHUB_ENV "LLVM_TARGETS=${{ env.CI_LLVM_TARGETS }}"
Add-Content $env:GITHUB_ENV "LLVM_LDFLAGS=${{ env.CI_LLVM_LDFLAGS }}"

- name: Build crystal-pu
run: make -f Makefile.win build\crystal-pu.exe O=build

- name: Run stdlib specs with interpreter
run: bin\crystal i spec\std_spec.cr

Expand Down
4 changes: 4 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -300,6 +300,10 @@ $(LLVM_EXT_OBJ): $(LLVM_EXT_DIR)/llvm_ext.cc
$(call check_llvm_config)
$(CXX) -c $(CXXFLAGS) -o $@ $< $(if $(LLVM_CONFIG),$(shell $(LLVM_CONFIG) --cxxflags))

$(O)/crystal-pu$(EXE): spec/support/process-utils.cr $(SOURCES)
@mkdir -p $(O)
$(EXPORT_CC) ./bin/crystal build $(FLAGS) -o $@ $<

man/: $(MAN1PAGES)

man/%.gz: man/%
Expand Down
5 changes: 5 additions & 0 deletions Makefile.win
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,11 @@ $(LLVM_EXT_OBJ): $(LLVM_EXT_DIR)\llvm_ext.cc
@rem - warning C4624: '...': destructor was implicitly defined as deleted
$(CXX) /nologo /c $(CXXFLAGS) /WX /wd4244 /wd4624 /wd4530 "/Fo$@" "$<" $(if $(LLVM_CONFIG),$(shell $(LLVM_CONFIG) --cxxflags))

$(O)\crystal-pu.exe: spec\support\process-utils.cr $(SOURCES)
@$(call MKDIR,"$(O)")
$(call export_vars)
.\bin\crystal build $(FLAGS) -o $@ $<

.PHONY: clean
clean: clean_crystal ## Clean up built directories and files
$(call RM,"$(LLVM_EXT_OBJ)")
Expand Down
Loading
Loading