ProtocRunner

nscn.polaris2.protoc.bridge.ProtocRunner
See theProtocRunner companion class
object ProtocRunner

Attributes

Companion
class
Graph
Supertypes
class Object
trait Matchable
class Any
Self type

Members list

Value members

Concrete methods

def apply(executable: String): ProtocRunner[Int]
def fromArgs[A](f: Seq[String] => A): ProtocRunner[A]

Ignores the extra environment. Only safe when no generator uses secondary outputs.

Ignores the extra environment. Only safe when no generator uses secondary outputs.

Attributes

def fromFunction[A](f: (Seq[String], Seq[(String, String)]) => A): ProtocRunner[A]
def maybeNixDynamicLinker(): Option[String]

On NixOS a downloaded protoc cannot find its interpreter, so it has to be invoked through the store's ld-linux.

On NixOS a downloaded protoc cannot find its interpreter, so it has to be invoked through the store's ld-linux.

Attributes

def maybeNixDynamicLinker(executable: String): Option[String]

As maybeNixDynamicLinker, but also verifies the executable is actually dynamic: protoc >= 3.23 ships static and will not load through ld-linux.

As maybeNixDynamicLinker, but also verifies the executable is actually dynamic: protoc >= 3.23 ships static and will not load through ld-linux.

Attributes

def withParametersAsFile[T](underlying: ProtocRunner[T]): ProtocRunner[T]

Wraps a runner so the arguments travel in a response file (@file).

Wraps a runner so the arguments travel in a response file (@file).

Needed for large source sets on Windows, where the command line length is capped.

Attributes