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

research nobuild + clang-cl #60

Open
mcandre opened this issue Apr 15, 2023 · 3 comments
Open

research nobuild + clang-cl #60

mcandre opened this issue Apr 15, 2023 · 3 comments

Comments

@mcandre
Copy link
Owner

mcandre commented Apr 15, 2023

See if clang-cl can load all of its silly vcvarsall.bat nonsense better than cl.

If so, consider deprecating rez in favor of nobuild.

https://learn.microsoft.com/en-us/cpp/build/clang-support-msbuild?view=msvc-170

https://github.com/tsoding/nobuild

Note that any compiler flags involved in compiling the nobuild build configuration source file, will have to be scripted by direnv / psenv.

@mcandre
Copy link
Owner Author

mcandre commented Apr 15, 2023

With some boilerplate, cmake is able to cleanup nearly every junk file.

Unfortunately, it flat refuses to delete the file .ninja_log, even when this path is specified in ADDITIONAL_CLEAN_FILES.

Unknown how cmake behaves when the MSVC junk file patterns are specified in ADDITIONAL_CLEAN_FILES.

Using a rez clean task to handle that.

@mcandre
Copy link
Owner Author

mcandre commented Apr 16, 2023

Tried even more cmake workarounds.

Frankly, the cmake project is beyond busted. cmake's support for cleaning up file generation triggered by cmake, was never tested in comparison to classic make clean behavior. When I tried to document the many quirks in cmake cleanup semantics, then their ticket system treated my updates as spam.

One workaround is to avoid ever using ninja with cmake. But that would slow down major C/C++ project builds.

May be worth identifying a suitable, highly portable replacement to cmake. Meson?

@mcandre
Copy link
Owner Author

mcandre commented Apr 16, 2023

Relates to mcandre/toys#429

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

No branches or pull requests

1 participant