Using CLion to compile for apple silicon
已回答
has anyone got CLion to compile for apple silicon yet?
Im able to compile my cmake projects for apple silicon using cmake compiled via homenbrew.
so I know it can work :)
however, it looks like Clion is running under Rosetta (as Intel Binary) and I guess using its own bundle (intel) cmake, so it always build intel binaries.
Im thinking I could perhaps get Clion to use Cmake provided by homebrew, and that might fix it....
has anyone tried this?
of course mid term, Id like to see CLion be apple silicon native, and supporting building universal binaries (like Xcode) :)
but for now, Id be happy to find anyway to build/debug apple silicon binaries with CLion.
请先登录再写评论。
Hello!
CLion currently work on M1 via Rosetta 2. And we work on porting OpenJDK to M1: https://youtrack.jetbrains.com/issue/JBR-2526. It should soon be available for testing in CLion.
good to know its being worked on :)
as I said, I have CLion running under Rosetta on my M1... and thats fine for Intel builds.
the main question surrounds building native applications (which I think is a CLion specific requirement?!)
I guess this needs things like the bundled cmake to also be native build.
also I wondered if there was a workaround for now (with CLion under Rosetta),or would Clion not be able launch native tools? (like cmake?)
anyway, Im really pleased to hear its being worked on...
I guess Im not the only developer thats finding converting my applications to native apple silicon is a pressing priority (due to a growing user base getting their M1s :) )
Some specific binaries like bundled LLDB, for example, are not rebuilt yet - https://youtrack.jetbrains.com/issue/CPP-23065. We are working on it.