You can use a single script for Linux/macOS if you capture `uname` and branch on "Darwin" for macOS specifics.thanks for the info!...
if clang is available on windows, that would be ideal.
for compile script, there could just be a separate compile.bat, calling clang
(and similar for mac, i guess)
then we wouldn't need much else..
i like the thought of that
It's also possible to detect Windows by checking if the value of $OS environment variable is "Windows_NT" (which is what I do with my GNU Makefiles for autodetecting the OS), but obviously for shell scripts you'd then need the user to install bash which is less than ideal, not that requiring GNU Make is better.. but I just like using it anyway, 'cos I can have it auto-detect source-files without having to touch CMakeLists.txt .. which honestly is (together with the incredibly spammy build output) the only thing that I don't like about CMake (yet, I still use CMake for some stuff too; just easier if you're using libraries that already support it).
Statistics: Posted by mystran — Sat Jun 22, 2024 3:17 am