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

Find alternative ways to get list of NANOTESTs #2

Open
kylemanna opened this issue Oct 9, 2015 · 0 comments
Open

Find alternative ways to get list of NANOTESTs #2

kylemanna opened this issue Oct 9, 2015 · 0 comments

Comments

@kylemanna
Copy link
Owner

Right now cmake invokes a python code generator that generates a header which has pointers to the test functions. This is pretty painless in cmake builds, but not ideal.

Originally I used linkersets but the location of the structs in the linker section aren't guaranteed to be contiguous. Clang with -fsanitize=address blows up as it adds redzones. Also, alignment is a problem if the structs aren't properly sized.

I'm sure there is some other linker magic that can be leveraged to use this and remove the dependency on python or (error prone) manual header generation.

@kylemanna kylemanna changed the title Find alternative ways to getting compilation time list of TESTs Find alternative ways to get list of NANOTESTs Oct 9, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant