Skip to content

Commit d600ad5

Browse files
committed
Update antlr to head upstream.
It fixes the missing `<chronos>` header that makes the Windows compile complain.
1 parent d9e6771 commit d600ad5

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,6 +57,10 @@ jobs:
5757
5858
export INSTALL_DIR=`pwd`/install
5959
60+
# https://github.com/antlr/antlr4/pull/4800
61+
sed -i '6i include(GNUInstallDirs)' third_party/antlr4/runtime/Cpp/runtime/CMakeLists.txt
62+
sed 's|\(set.*libantlrcpp_INCLUDE_INSTALL_DIR "\)include/|\1${CMAKE_INSTALL_INCLUDEDIR}/|' -i third_party/antlr4/runtime/Cpp/runtime/CMakeLists.txt
63+
6064
cmake -DCMAKE_BUILD_TYPE=$BUILD_TYPE -DCMAKE_INSTALL_PREFIX=$INSTALL_DIR $CMAKE_ADDITIONAL_ARGS -S . -B build
6165
cmake --build build -j $(nproc)
6266
cmake --install build

third_party/antlr4

Submodule antlr4 updated 460 files

0 commit comments

Comments
 (0)