Skip to content
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

Compile with O2 and add another test. #24

Merged
merged 1 commit into from
Jan 30, 2025
Merged

Conversation

ptersilie
Copy link
Contributor

Both are required in order to add ykcbf to yk CI.

Makefile Outdated
@@ -15,7 +15,7 @@ bf_base: bf_base.o
${CC} ${LDFLAGS} -o $@ $<

bf_simple_yk.o: bf_simple_yk.c
${CC} ${CFLAGS} ${YK_CFLAGS} -c -o $@ $<
${CC} -O2 ${CFLAGS} ${YK_CFLAGS} -c -o $@ $<
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hard-coding like this is a very bad plan.

Please set this in CFLAGS but also make CFLAGS overridable with ?= as per Makefile conventions so that someone can override it with -O0 etc.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@ltratt
Copy link
Contributor

ltratt commented Jan 30, 2025

Please squash.

Both are required in order to add ykcbf to yk CI.
@ptersilie
Copy link
Contributor Author

Squashed.

@ltratt ltratt added this pull request to the merge queue Jan 30, 2025
Merged via the queue into ykjit:main with commit aac7ae3 Jan 30, 2025
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants