Skip to content

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