Repository navigation
Fully support lazy and immediate binding #335
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
86d8178
0577bae
8a5c718
ef8287d
7e58283
72808a4
d5be4bc
9fbbe1b
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -84,12 +84,13 @@ TRANSLATION_DEFS = "\#define SHECC_TRANSLATION_DATE \"$(TRANSLATION_DATE)\"\n\#d | |
| STAGE0_FLAGS ?= --dump-ir | ||
| STAGE1_FLAGS ?= | ||
| DYNLINK ?= 0 | ||
| BINDING ?= lazy | ||
|
|
||
| COMMENTFLOW ?= commentflow | ||
| SHFMT ?= shfmt | ||
| ifeq ($(DYNLINK),1) | ||
| STAGE0_FLAGS += --dynlink | ||
| STAGE1_FLAGS += --dynlink | ||
| STAGE0_FLAGS += --dynlink -z $(BINDING) | ||
|
Collaborator
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nothing records
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This has not yet been resolved. I will think of a proper approach to address it later.
Collaborator
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Since this pull request has been merged, I will submit another one later to address the concern mentioned above. |
||
| STAGE1_FLAGS += --dynlink -z $(BINDING) | ||
|
cubic-dev-ai[bot] marked this conversation as resolved.
|
||
| endif | ||
|
|
||
| SRCS := $(wildcard $(patsubst %,%/main.c, $(SRCDIR))) | ||
|
|
@@ -236,23 +237,23 @@ uninstall-hooks: | |
|
|
||
| check-stage0: $(OUT)/$(STAGE0) tests/driver.sh | ||
| $(VECHO) " TEST STAGE 0\n" | ||
| tests/driver.sh 0 $(DYNLINK) | ||
| tests/driver.sh 0 $(DYNLINK) $(BINDING) | ||
|
|
||
| check-stage2: $(OUT)/$(STAGE2) tests/driver.sh | ||
| $(VECHO) " TEST STAGE 2\n" | ||
| tests/driver.sh 2 $(DYNLINK) | ||
| tests/driver.sh 2 $(DYNLINK) $(BINDING) | ||
|
DrXiao marked this conversation as resolved.
|
||
|
|
||
| check-sanitizer: $(OUT)/$(STAGE0)-sanitizer tests/driver.sh | ||
| $(VECHO) " TEST STAGE 0 (with sanitizers)\n" | ||
| $(Q)cp $(OUT)/$(STAGE0)-sanitizer $(OUT)/shecc | ||
| tests/driver.sh 0 $(DYNLINK) | ||
| tests/driver.sh 0 $(DYNLINK) $(BINDING) | ||
| $(Q)rm $(OUT)/shecc | ||
|
|
||
| check-abi-stage0: $(OUT)/$(STAGE0) | ||
| tests/$(ARCH)-abi.sh 0 $(DYNLINK); | ||
| tests/$(ARCH)-abi.sh 0 $(DYNLINK) $(BINDING); | ||
|
|
||
| check-abi-stage2: $(OUT)/$(STAGE2) | ||
| tests/$(ARCH)-abi.sh 2 $(DYNLINK); | ||
| tests/$(ARCH)-abi.sh 2 $(DYNLINK) $(BINDING); | ||
|
|
||
| # Both prerequisites are order-only, and both exist because "make -j" would | ||
| # otherwise let a compile start beside the thing it reads. Selecting a target | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.