aboutsummaryrefslogtreecommitdiff
path: root/scripts/generate_rust_analyzer.py
diff options
context:
space:
mode:
authorLeo Yan <[email protected]>2024-07-17 09:22:07 +0100
committerNamhyung Kim <[email protected]>2024-07-26 11:15:09 -0700
commitcffe29d3b54aa0437bc35440ea64866bbfc418a3 (patch)
tree6bff106b8c6b29fd3304de3cfd5b035399b52812 /scripts/generate_rust_analyzer.py
parent440cf77625e300e683ca0edc39fbc4b6f3175feb (diff)
perf: build: Set Python configuration for cross compilation
Python configuration has dedicated folders for different architectures. For example, Python 3.11 has two folders as shown below, one for Arm64 and another for x86_64: /usr/lib/python3.11/config-3.11-aarch64-linux-gnu/ /usr/lib/python3.11/config-3.11-x86_64-linux-gnu/ This commit updates the Python configuration path based on the compiler's machine type, guiding the compiler to find the correct path for Python libraries. It also renames the generated .so file name to match the machine name. Signed-off-by: Leo Yan <[email protected]> Tested-by: Ian Rogers <[email protected]> Cc: [email protected] Cc: James Clark <[email protected]> Cc: Thomas Richter <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Namhyung Kim <[email protected]>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions