He-Pin commented on code in PR #857: URL: https://github.com/apache/incubator-pekko/pull/857#discussion_r1435530047
########## project/PekkoInlinePlugin.scala: ########## @@ -0,0 +1,47 @@ +/* + * Licensed to the Apache Software Foundation (ASF) under one or more + * license agreements; and to You under the Apache License, version 2.0: + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * This file is part of the Apache Pekko project, derived from Akka. + */ + +import sbt.Keys._ +import sbt._ +import sbt.plugins.JvmPlugin + +object PekkoInlinePlugin extends AutoPlugin { + override def trigger: PluginTrigger = allRequirements + + override def requires: Plugins = JvmPlugin + + val enabled = !sys.props.contains("pekko.no.inline") + + private val flagsFor212 = Seq( + "-opt-inline-from:org.apache.pekko.**", + "-opt-inline-from:<sources>", + "-opt:l:inline") + + private val flagsFor213 = Seq( + "-opt-inline-from:org.apache.pekko.**", + "-opt-inline-from:<sources>", + "-opt:l:inline") + + // Optimizer not yet available for Scala3, see https://docs.scala-lang.org/overviews/compiler-options/optimizer.html + private val flagsFor3 = Seq() Review Comment: Add a //TODO here? -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
