Skip to content

Commit

Permalink
ci: use clang instead of gcc compiler
Browse files Browse the repository at this point in the history
Clang has faster link time optimization by default, which will should
save 10-20 seconds per CI run.
  • Loading branch information
dundargoc authored and lewis6991 committed Feb 28, 2023
1 parent 9aa7049 commit 76b71f7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ on:
branches: [ main ]
workflow_dispatch:

env:
CC: clang

jobs:
commit_lint:
runs-on: ubuntu-latest
Expand Down
4 changes: 1 addition & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -23,11 +23,9 @@ LUAROCKS_INIT := eval $$($(LUAROCKS) --tree $(LUAROCKS_TREE) path) &&
$(NVIM_DIR):
@mkdir -p $(DEPS_DIR)
git clone --depth 1 https://github.com/neovim/neovim --branch $(NEOVIM_BRANCH) $@
@# disable LTO to reduce compile time
make -C $@ \
DEPS_BUILD_DIR=$(dir $(LUAROCKS_TREE)) \
CMAKE_BUILD_TYPE=RelWithDebInfo \
CMAKE_EXTRA_FLAGS=-DENABLE_LTO=OFF
CMAKE_BUILD_TYPE=RelWithDebInfo

TL := $(LUAROCKS_TREE)/bin/tl

Expand Down

0 comments on commit 76b71f7

Please sign in to comment.