-
Notifications
You must be signed in to change notification settings - Fork 1
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
fix windows build on non-cl compilers #2
Conversation
CMAKE_SOURCE_DIR => CMAKE_CURRENT_SOURCE_DIR
err, doesn't work with msvc |
Not sure what system you on, but clang and gcc already compiles the way |
I'm trying to fix it on Windows, since the current CMakeLists assumes that you're running a cl-compatible compiler (MSVC or clang-cl) if you're on Windows. |
Cmake really setup to default to native OS host compiler, and my whole setup is an workaround to use Your changes is not for native setup, you will have many more issues to train cmake, I find not worth the effort. Also, |
I'm on Windows and I have $CC set to clang, meaning I have to go out of my way to install/compile with MSVC just to compile tcc, not very convenient :/ |
Yes, that is what I mean, cmake really want you to use native OS compiler, doesn't matter what I build locally on Windows too, then test under WSL2. |
Unsure how correct the changes in
rpmalloc.c
are, without the change the clang fails with the errorcannot combine with previous 'static' declaration specifier
, haven't tested it with MSVC.The changes in
CMakeLists.txt
seem to work both on clang and gcc.