Skip to content

Update the default compilation options#15

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

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

Conversation

@atrosinenko

@atrosinenko atrosinenko commented Nov 21, 2025

Copy link
Copy Markdown
Collaborator

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.

Comment thread config Outdated
@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
@atrosinenko
atrosinenko force-pushed the atrosinenko/default-compiler-options branch from a381f17 to aacf545 Compare February 28, 2026 10:52
@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
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 force-pushed the atrosinenko/fix-llvm-test-suite-cmake-example branch from 7f5eb6b to 7b905f6 Compare July 27, 2026 11:21
@atrosinenko
atrosinenko force-pushed the atrosinenko/default-compiler-options branch from 19a28e6 to 1ef542c Compare July 27, 2026 11:21
@atrosinenko

Copy link
Copy Markdown
Collaborator Author

Ping

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