Skip to content

Commit

Permalink
Turn off header checks on older MSVC compilers. (#235)
Browse files Browse the repository at this point in the history
Co-authored-by: Michael Graeb <[email protected]>
  • Loading branch information
waahm7 and graebm authored May 9, 2023
1 parent 85e7c3f commit b0fa20a
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 19 deletions.
9 changes: 4 additions & 5 deletions .github/workflows/create-channel.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,17 @@
name: Create Channel

# need images created at least once per branch, even if there are no docker changes
# so that downstream projects can use the branch channel. Also anytime this
# file is updated
# so that downstream projects can use the branch channel.
on:
push:
branches-ignore:
- 'main'
paths:
- '.github/workflows/create-channel.yml'
- '.github/actions/**/*'
- '.github/docker-images/**/*'
- '.github/docker-images/entrypoint.sh'
- '.github/actions/**'
- '.github/docker-images/**'
- '.github/workflows/*.sh'
- 'builder/**'
create:

env:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/sanity-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ jobs:
strategy:
fail-fast: false
matrix:
host: [ubuntu-20.04, macos-11, macos-12, windows-2019]
host: [ubuntu-20.04, macos-11, macos-12, windows-2022]
needs: package
runs-on: ${{ matrix.host }}
steps:
Expand Down
4 changes: 2 additions & 2 deletions builder/actions/cmake.py
Original file line number Diff line number Diff line change
Expand Up @@ -140,14 +140,14 @@ def _build_project(env, project, cmake_extra, build_tests=False, args_transforme
cmake_args = UniqueList([
"-B{}".format(project_build_dir),
"-H{}".format(project_source_dir),
# "-Werror=dev",
# "-Werror=deprecated",
"-DAWS_WARNINGS_ARE_ERRORS=ON",
"-DPERFORM_HEADER_CHECK=ON",
"-DCMAKE_INSTALL_PREFIX=" + project_install_dir,
"-DCMAKE_PREFIX_PATH=" + project_install_dir,
"-DCMAKE_EXPORT_COMPILE_COMMANDS=ON",
"-DCMAKE_BUILD_TYPE=" + build_config,
"-DBUILD_TESTING=" + ("ON" if build_tests else "OFF"),
"--no-warn-unused-cli",
*compiler_flags,
])
# Merging in cmake_args from all upstream projects inevitably leads to duplicate arguments.
Expand Down
22 changes: 11 additions & 11 deletions builder/core/data.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,10 +119,6 @@ class PKG_TOOLS(Enum):
'variables': {
'python': "python3",
},

'cmake_args': [
"-DPERFORM_HEADER_CHECK=ON",
],
'sudo': True
},
'ubuntu': {
Expand Down Expand Up @@ -195,7 +191,6 @@ class PKG_TOOLS(Enum):
'os': 'linux',
'cmake_args': [
"-DENABLE_SANITIZERS=OFF",
"-DPERFORM_HEADER_CHECK=OFF",
],

'pkg_tool': PKG_TOOLS.YUM,
Expand All @@ -210,7 +205,6 @@ class PKG_TOOLS(Enum):
'os': 'linux',
'cmake_args': [
"-DENABLE_SANITIZERS=OFF",
"-DPERFORM_HEADER_CHECK=OFF",
],

'pkg_tool': PKG_TOOLS.YUM,
Expand Down Expand Up @@ -251,10 +245,6 @@ class PKG_TOOLS(Enum):

'pkg_tool': PKG_TOOLS.CHOCO,
'pkg_install': 'choco install --no-progress',

'cmake_args': [
"-DPERFORM_HEADER_CHECK=ON",
],
},
'macos': {
'os': 'macos',
Expand Down Expand Up @@ -596,6 +586,10 @@ class PKG_TOOLS(Enum):
'14': {
'cmake_args': [
'-Tv140',
# The windows-2019 github runner is the last one with the v140 toolset,
# but it has an old Windows 10 SDK whose headers causes level 4 compiler warnings.
# https://developercommunity.visualstudio.com/t/issue-in-corecrth-header-results-in-an-undefined-m/433021
'-DPERFORM_HEADER_CHECK=OFF',
],
},
# 2017
Expand All @@ -609,7 +603,13 @@ class PKG_TOOLS(Enum):
'cmake_args': [
'-Tv142',
],
}
},
# 2022
'17': {
'cmake_args': [
'-Tv143',
],
},
},

'architectures': {
Expand Down

0 comments on commit b0fa20a

Please sign in to comment.