Skip to content

In tvm_runtime.h, there are extra spaces in STRINGIFY_MACRO(EXPAND(n1) EXPAND(n2)). #2618

@XuanqiCui

Description

@XuanqiCui

🐛 Bug

To Reproduce

Steps to reproduce the behavior:

WhenBuild Android App from Source, during the Step 2. Build Runtime and Model Libraries, while executing mlc_llm package, there is a chance that a bug will be triggered due to the extra space between EXPAND(n1) and EXPAND(n2) in the #define CONCAT(n1, n2) STRINGIFY_MACRO(EXPAND(n1) EXPAND(n2)) code in tvm_runtime.h. This bug manifests as a space appearing between TVM_SOURCE_DIR and /src/runtime/c_runtime_api.cc when concatenating paths, causing the path to be unrecognizable.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugConfirmed bugs

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions