• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1
2import Builder
3import sys
4import os
5import tempfile
6from builder.core.host import current_host
7
8# This action is used by the musl-linux-build.sh script to build the binaries for release.
9class BuildClassifier(Builder.Action):
10
11
12    def run(self, env):
13        crt_classifier = os.getenv("CRT_CLASSIFIER")
14        if crt_classifier is not None:
15            env.shell.exec("mvn", "-B", "install", "-DskipTests", "-Dshared-lib.skip=true", f"-Dcrt.classifier={crt_classifier}", check=True)
16