Skip to content

LLVM System Config Variable #1073

@MosGeo

Description

@MosGeo

I noticed that running the following from the standalone python:

import sysconfig
for k in ("AR", "CC", "CXX"):
    print(k, "=", sysconfig.get_config_var(AR))

produces:

AR = /tools/llvm/bin/llvm-ar
CC = clang
CXX = clang++

clang and clang++ are correct but AR should be coded to llvm-ar without hard coding the path. This causes some issues during building some libraries as it expects llvm-ar to be in a very specific location.

Python version: 3.12.11 [Clang 20.1.4] on Linux

EDIT:
Adding the documentation note about this issue:
https://gregoryszorc.com/docs/python-build-standalone/main/quirks.html#references-to-build-time-paths

It looks like it is a known general issue. CC and CXX are handled correctly as suggested by the documentation but not AR

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions