OSDN Git Service

[Feature] clangでのビルドテストではプリコンパイルヘッダを使用しない
authorHabu <habu1010+github@gmail.com>
Sat, 1 May 2021 16:25:18 +0000 (01:25 +0900)
committerHabu <habu1010+github@gmail.com>
Sat, 1 May 2021 16:28:20 +0000 (01:28 +0900)
普段プリコンパイルヘッダを使用していることで、必要ヘッダのインクルード
忘れによりプリコンパイルヘッダ未使用時にコンパイルエラーが発生するように
なっていることがたまにあるので、clangでのビルドテストではプリコンパイル
ヘッダを使用しないようにする。

.github/workflows/buildtest-on-linux.yml

index d8b671d..ab99562 100644 (file)
@@ -47,8 +47,8 @@ jobs:
       - name: Clean source tree
         run: make clean
 
-      - name: Configure for compiling with clang
-        run: ./configure
+      - name: Configure for compiling with clang (without using pre-compiled headers)
+        run: ./configure --disable-pch
         env:
           CXX: clang++-11
           CXXFLAGS: "-pipe -O3 -Werror -Wall -Wextra -Wno-unused-const-variable -Wno-invalid-source-encoding"