The Swift Package Index logo.Swift Package Index

Build Information

Successful build of xgrammar, reference v0.2.8 (977873), with Swift 6.2 for Linux on 29 Sep 2026 16:05:03 UTC.

Swift 6 data race errors: 0

Build Command

bash -c docker run --pull=always --rm -v "checkouts-53886770-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:basic-6.2-latest swift build --triple x86_64-unknown-linux-gnu 2>&1

Build Log

========================================
RunAll
========================================
Builder version: 5.1.0
Interrupt handler set up.
========================================
Checkout
========================================
Clone URL: https://github.com/mlc-ai/xgrammar.git
Reference: v0.2.8
Initialized empty Git repository in /host/spi-builder-workspace/.git/
hint: Using 'master' as the name for the initial branch. This default branch name
hint: is subject to change. To configure the initial branch name to use in all
hint: of your new repositories, which will suppress this warning, call:
hint:
hint: 	git config --global init.defaultBranch <name>
hint:
hint: Names commonly chosen instead of 'master' are 'main', 'trunk' and
hint: 'development'. The just-created branch can be renamed via this command:
hint:
hint: 	git branch -m <name>
From https://github.com/mlc-ai/xgrammar
 * tag               v0.2.8     -> FETCH_HEAD
HEAD is now at 9778737 feat: support MiMo-V2.6 Pro and Flash structural tags (#916)
Submodule path '3rdparty/cpptrace': checked out '6689d14c203eed390ae7bb64f56a983cfd7dff9c'
Submodule path '3rdparty/dlpack': checked out 'bbd2f4d32427e548797929af08cfe2a9cbb3cf12'
Submodule path '3rdparty/googletest': checked out 'df1544bcee0c7ce35cd5ea0b3eb8cc81855a4140'
Submodule '3rdparty/cpptrace' (https://github.com/jeremy-rifkin/cpptrace.git) registered for path '3rdparty/cpptrace'
Submodule '3rdparty/dlpack' (https://github.com/dmlc/dlpack.git) registered for path '3rdparty/dlpack'
Submodule '3rdparty/googletest' (https://github.com/google/googletest.git) registered for path '3rdparty/googletest'
Cloning into '/host/spi-builder-workspace/3rdparty/cpptrace'...
Cloning into '/host/spi-builder-workspace/3rdparty/dlpack'...
Cloning into '/host/spi-builder-workspace/3rdparty/googletest'...
Cloned https://github.com/mlc-ai/xgrammar.git
Revision (git rev-parse @):
97787376faee5ed8466cfad57c99855e4ce2f6aa
SUCCESS checkout https://github.com/mlc-ai/xgrammar.git at v0.2.8
========================================
Build
========================================
Selected platform:         linux
Swift version:             6.2
Building package at path:  $PWD
https://github.com/mlc-ai/xgrammar.git
Running build ...
bash -c docker run --pull=always --rm -v "checkouts-53886770-1":/host -w "$PWD" -e JAVA_HOME="/root/.sdkman/candidates/java/current" -e SPI_BUILD="1" -e SPI_PROCESSING="1" registry.gitlab.com/saguaro1/spi-images:basic-6.2-latest swift build --triple x86_64-unknown-linux-gnu 2>&1
basic-6.2-latest: Pulling from saguaro1/spi-images
Digest: sha256:813c8e8a77634154d7d247705cb89167ff1c866446abbe321f542129dc4cf5a7
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:basic-6.2-latest
Building for debugging...
[0/28] Compiling glm.cc
[1/28] Compiling qwen.cc
[2/28] Compiling kimi_k3.cc
[3/28] Compiling minimax.cc
[4/28] Compiling logging.cc
[5/28] Compiling recursion_guard.cc
[6/28] Compiling deepseek.cc
[7/28] Compiling tokenizer_info.cc
[8/28] Compiling minimax_m3.cc
[9/28] Compiling earley_parser.cc
[10/28] Compiling suffix_automata.cc
[11/28] Compiling regex_converter.cc
[12/28] Compiling testing.cc
[13/28] Compiling grammar_printer.cc
[14/28] Compiling grammar_parser.cc
[15/28] Compiling lark_converter.cc
[16/28] Compiling grammar_builder.cc
[17/28] Compiling grammar_functor.cc
[18/28] Compiling grammar_matcher.cc
[19/28] Compiling grammar_compiler.cc
[20/28] Compiling json_schema_converter.cc
[21/28] Compiling grammar.cc
[22/28] Compiling config.cc
[23/28] Compiling fsm_builder.cc
[24/28] Compiling structural_tag.cc
[25/28] Compiling fsm.cc
[26/28] Compiling cohere.cc
[27/28] Compiling compiled_grammar.cc
Build complete! (25.67s)
Build complete.
{
  "cxx_language_standard" : "c++17",
  "dependencies" : [
  ],
  "manifest_display_name" : "xgrammar",
  "name" : "xgrammar",
  "path" : "/host/spi-builder-workspace",
  "platforms" : [
    {
      "name" : "macos",
      "version" : "14.0"
    },
    {
      "name" : "ios",
      "version" : "17.0"
    }
  ],
  "products" : [
    {
      "name" : "XGrammar",
      "targets" : [
        "XGrammar"
      ],
      "type" : {
        "library" : [
          "automatic"
        ]
      }
    }
  ],
  "targets" : [
    {
      "c99name" : "XGrammar",
      "module_type" : "ClangTarget",
      "name" : "XGrammar",
      "path" : ".",
      "product_memberships" : [
        "XGrammar"
      ],
      "sources" : [
        "cpp/compiled_grammar.cc",
        "cpp/config.cc",
        "cpp/converter_ext/cohere.cc",
        "cpp/converter_ext/deepseek.cc",
        "cpp/converter_ext/glm.cc",
        "cpp/converter_ext/kimi_k3.cc",
        "cpp/converter_ext/minimax.cc",
        "cpp/converter_ext/minimax_m3.cc",
        "cpp/converter_ext/qwen.cc",
        "cpp/earley_parser.cc",
        "cpp/fsm.cc",
        "cpp/fsm_builder.cc",
        "cpp/grammar.cc",
        "cpp/grammar_builder.cc",
        "cpp/grammar_compiler.cc",
        "cpp/grammar_functor.cc",
        "cpp/grammar_matcher.cc",
        "cpp/grammar_parser.cc",
        "cpp/grammar_printer.cc",
        "cpp/json_schema_converter.cc",
        "cpp/lark_converter.cc",
        "cpp/regex_converter.cc",
        "cpp/structural_tag.cc",
        "cpp/suffix_automata.cc",
        "cpp/support/logging.cc",
        "cpp/support/recursion_guard.cc",
        "cpp/testing.cc",
        "cpp/tokenizer_info.cc"
      ],
      "type" : "library"
    }
  ],
  "tools_version" : "6.0"
}
basic-6.2-latest: Pulling from saguaro1/spi-images
Digest: sha256:813c8e8a77634154d7d247705cb89167ff1c866446abbe321f542129dc4cf5a7
Status: Image is up to date for registry.gitlab.com/saguaro1/spi-images:basic-6.2-latest
Done.