Skip to content

remove lots unuse llvm compoent to enhance build time#13

Merged
cpunion merged 3 commits into
goplus:mainfrom
luoliwoshang:rm/some
Aug 30, 2025
Merged

remove lots unuse llvm compoent to enhance build time#13
cpunion merged 3 commits into
goplus:mainfrom
luoliwoshang:rm/some

Conversation

@luoliwoshang
Copy link
Copy Markdown
Member

@luoliwoshang luoliwoshang commented Aug 30, 2025

parts of #12

This PR updates the LLVM/Clang build configuration to disable several optional components, following the build configuration used in TinyGo.

The goal is to simplify the prebuilt distribution, reduce build time, and remove unnecessary dependencies.

Disabled options and their effects

-DLLVM_ENABLE_TERMINFO=OFF
Disable terminfo support (no dependency on ncurses).

-DLLVM_ENABLE_ZSTD=OFF
Disable zstd compression support (compressed debug info and caches won’t use zstd).

-DLLVM_ENABLE_Z3_SOLVER=OFF
Disable Z3 SMT solver integration (LLVM passes/tools depending on Z3 are unavailable).

-DLLVM_ENABLE_OCAMLDOC=OFF
Skip generating documentation for LLVM’s OCaml bindings.

-DLLVM_ENABLE_LIBXML2=OFF
Disable libxml2 support (affects some parsing and AST export features).

-DLLVM_TOOL_CLANG_TOOLS_EXTRA_BUILD=OFF
Skip building clang extra tools (e.g. clang-tidy, clang-format, clangd).

-DCLANG_ENABLE_ARCMT=OFF
Disable the ARC Migration Tool (Objective-C automatic reference counting migration).

luoliwoshang added a commit to luoliwoshang/homebrew-core that referenced this pull request Aug 30, 2025
luoliwoshang added a commit to luoliwoshang/homebrew-core that referenced this pull request Aug 30, 2025
llvm build cache

with mac cgo config

with c++17

-Wl,-rpath with llvm

remove CFLAG unset by xgo-dev/llgo#1243 merged

with llgo embed target build test

DRUNTIMES_CMAKE_ARGS set RPATH

clang prefix

linux rpath

-DLLVM_ENABLE_LIBEDIT=OFF

refine rb struct

llvm test off

same rpath use

reduce llvm pack same with goplus/espressif-llvm-project-prebuilt#13
@luoliwoshang luoliwoshang marked this pull request as draft August 30, 2025 06:23
@luoliwoshang luoliwoshang marked this pull request as ready for review August 30, 2025 06:55
@cpunion cpunion merged commit 0abf214 into goplus:main Aug 30, 2025
6 checks passed
luoliwoshang added a commit to luoliwoshang/homebrew-core that referenced this pull request Aug 30, 2025
llvm build cache

with mac cgo config

with c++17

-Wl,-rpath with llvm

remove CFLAG unset by xgo-dev/llgo#1243 merged

with llgo embed target build test

DRUNTIMES_CMAKE_ARGS set RPATH

clang prefix

linux rpath

-DLLVM_ENABLE_LIBEDIT=OFF

refine rb struct

llvm test off

same rpath use

reduce llvm pack same with goplus/espressif-llvm-project-prebuilt#13
luoliwoshang added a commit to luoliwoshang/homebrew-core that referenced this pull request Aug 31, 2025
llvm build cache

with mac cgo config

with c++17

-Wl,-rpath with llvm

remove CFLAG unset by xgo-dev/llgo#1243 merged

with llgo embed target build test

DRUNTIMES_CMAKE_ARGS set RPATH

clang prefix

linux rpath

-DLLVM_ENABLE_LIBEDIT=OFF

refine rb struct

llvm test off

same rpath use

reduce llvm pack same with goplus/espressif-llvm-project-prebuilt#13
luoliwoshang added a commit to luoliwoshang/homebrew-core that referenced this pull request Sep 1, 2025
llvm build cache

with mac cgo config

with c++17

-Wl,-rpath with llvm

remove CFLAG unset by xgo-dev/llgo#1243 merged

with llgo embed target build test

DRUNTIMES_CMAKE_ARGS set RPATH

clang prefix

linux rpath

-DLLVM_ENABLE_LIBEDIT=OFF

refine rb struct

llvm test off

same rpath use

reduce llvm pack same with goplus/espressif-llvm-project-prebuilt#13

remove unuse component
luoliwoshang added a commit to luoliwoshang/homebrew-core that referenced this pull request Sep 1, 2025
llvm build cache

with mac cgo config

with c++17

-Wl,-rpath with llvm

remove CFLAG unset by xgo-dev/llgo#1243 merged

with llgo embed target build test

DRUNTIMES_CMAKE_ARGS set RPATH

clang prefix

linux rpath

-DLLVM_ENABLE_LIBEDIT=OFF

refine rb struct

llvm test off

same rpath use

reduce llvm pack same with goplus/espressif-llvm-project-prebuilt#13

remove unuse component
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants