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

tests: define only once the compiler and flag #179

Merged
merged 2 commits into from
Oct 24, 2024

Conversation

isidroas
Copy link
Contributor

  • tests: define only once the compiler and flag
    This way you could play with them easily. For example:

    • use clang instead gcc
    • -Wextra
    • -fsanitize=address
  • check CC environ and fallback to gcc

This way you could play with them easily. For example:
- use clang instead gcc
- -Wextra
- -fsanitize=address
Can be used in continious integration
Copy link
Owner

@benhoyt benhoyt left a comment

Choose a reason for hiding this comment

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

Works for me, thanks!

$ time CC=gcc ./unittest.sh

real	0m0.841s
user	0m0.574s
sys	0m0.257s
$ time CC=tcc ./unittest.sh

real	0m0.141s
user	0m0.070s
sys	0m0.069s

@benhoyt benhoyt merged commit 5f8fdf2 into benhoyt:master Oct 24, 2024
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