How do I use the omp4j multithreading java preprocessor/compiler with IDEA?
已回答
want to use the omp4j multithreaded loop compiler/preprocessor. It is a drop in replacement for javac, which first does a source->source transform on a java file. The instructions say
"Create a shell alias for omp4j in form of java -jar <path-to-JAR>"
So I made a bash script called omp4j which contains
java -jar $HOME/IdeaProjects/jleela/omp4j/omp4j-1.2.jar $@
I would like to use this instead of the JDK javac when I build my project. How do I specify this in Intellij IDEA preferences?
Thanks
请先登录再写评论。
IntelliJ IDEA doesn't call javac command line, it uses compiler via API, so there is no way to use this compiler without writing a plug-in for IntelliJ IDEA: https://www.jetbrains.org/intellij/sdk/docs/reference_guide/frameworks_and_external_apis/external_builder_api.html .
Is there an example of a plugin which applies a java source code preprocessor that I could look at to modify?
https://github.com/JetBrains/intellij-community/tree/master/plugins/eclipse/jps-plugin