Skip to content

Commit e6c147d

Browse files
committed
[analysis] Update codeql build command to only build using clang
1 parent 575193b commit e6c147d

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

.github/workflows/codeql-analysis.yml

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -52,8 +52,8 @@ jobs:
5252

5353
# Autobuild attempts to build any compiled languages (C/C++, C#, or Java).
5454
# If this step fails, then you should remove it and run the build manually (see below)
55-
- name: Autobuild
56-
uses: github/codeql-action/autobuild@v1
55+
# - name: Autobuild
56+
# uses: github/codeql-action/autobuild@v1
5757

5858
# ℹ️ Command-line programs to run using the OS shell.
5959
# 📚 https://git.io/JvXDl
@@ -62,9 +62,8 @@ jobs:
6262
# and modify them (or add more) to build your code if your project
6363
# uses a compiled language
6464

65-
#- run: |
66-
# make bootstrap
67-
# make release
65+
- run: |
66+
make clang-native
6867
6968
- name: Perform CodeQL Analysis
7069
uses: github/codeql-action/analyze@v1

CMakeLists.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ project(OpenOCPP)
1010
include(CMakeLists_Options.txt)
1111

1212
# Target toolchain definition and specific compiler flags
13+
if(NOT DEFINED TARGET)
14+
set(TARGET native)
15+
endif()
1316
include(CMakeLists_${TARGET}.txt)
1417

1518
# Subdirectories

0 commit comments

Comments
 (0)