Skip to content

Update the default compilation options#15

Open
atrosinenko wants to merge 2 commits intoatrosinenko/fix-llvm-test-suite-cmake-examplefrom
atrosinenko/default-compiler-options
Open

Update the default compilation options#15
atrosinenko wants to merge 2 commits intoatrosinenko/fix-llvm-test-suite-cmake-examplefrom
atrosinenko/default-compiler-options

Conversation

@atrosinenko
Copy link
Collaborator

@atrosinenko atrosinenko commented Nov 21, 2025

Recent versions of Clang support -fptrauth-elf-got as a compiler driver option, thus do not use -Xclang ... anymore. Passing this option through the Clang driver makes it possible to override it by -fno-ptrauth-elf-got without modifying the *.cfg files.

Additionally, build LLVM with LLVM_ENABLE_ASSERTIONS by default and introduce EXTRA_FLAGS_COMMON variable for convenience.

@atrosinenko atrosinenko force-pushed the atrosinenko/disk-usage-stats branch from 5c748c2 to e870cac Compare February 10, 2026 10:19
@atrosinenko atrosinenko force-pushed the atrosinenko/default-compiler-options branch from 43c36c9 to 300e7f7 Compare February 10, 2026 10:21
@atrosinenko atrosinenko force-pushed the atrosinenko/disk-usage-stats branch from e870cac to f0f15f1 Compare February 10, 2026 10:33
Base automatically changed from atrosinenko/disk-usage-stats to master February 10, 2026 10:36
@atrosinenko atrosinenko force-pushed the atrosinenko/default-compiler-options branch from 300e7f7 to e4dc75c Compare February 10, 2026 10:37
@atrosinenko atrosinenko force-pushed the atrosinenko/default-compiler-options branch from e4dc75c to a381f17 Compare February 27, 2026 15:45
@atrosinenko atrosinenko changed the base branch from master to atrosinenko/docker-emergency-shell February 27, 2026 15:45
@atrosinenko atrosinenko force-pushed the atrosinenko/docker-emergency-shell branch from a0b6c39 to 07d6641 Compare February 28, 2026 10:45
Base automatically changed from atrosinenko/docker-emergency-shell to master February 28, 2026 10:47
Recent versions of Clang support `-fptrauth-elf-got` as a compiler
driver option, thus do not use `-Xclang ...` anymore. Passing this
option through the Clang driver makes it possible to override it
by `-fno-ptrauth-elf-got` without modifying the *.cfg files.

Additionally, enable more assertions by default:
* Build LLVM with LLVM_ENABLE_ASSERTIONS
* Check MachineInstr produced by the backend
@atrosinenko atrosinenko changed the base branch from master to atrosinenko/fix-llvm-test-suite-cmake-example March 7, 2026 09:44
@atrosinenko atrosinenko marked this pull request as ready for review March 7, 2026 09:44
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.

1 participant