Skip to content

Commit

Permalink
Fix compiler flags qaic-software-kit
Browse files Browse the repository at this point in the history
  • Loading branch information
arjunsuresh committed Feb 10, 2024
1 parent 1defa2b commit 4ca005b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions cm-mlops/script/get-qaic-software-kit/customize.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,12 +23,16 @@ def preprocess(i):
if env.get('CM_LLVM_CLANG_VERSION', '') != '':
clang_version_split = env['CM_LLVM_CLANG_VERSION'].split(".")
clang_major_version = int(clang_version_split[0])
if clang_major_version >= 17:
env['+ CFLAGS'].append("-Wno-error=c2x-extensions")
if clang_major_version >= 16:
env['+ CFLAGS'].append("-Wno-error=unused-but-set-variable")
env['+ CXXFLAGS'].append("-Wno-error=unused-but-set-variable")
if clang_major_version >= 13:
env['+ CFLAGS'].append("-Wno-error=unused-const-variable")
env['+ CFLAGS'].append("-Wno-error=unused-but-set-variable")
env['+ CFLAGS'].append("-Wno-error=strict-prototypes")
env['+ CFLAGS'].append("-Wno-error=unused-variable")
env['+ CXXFLAGS'].append("-Wno-error=unused-const-variable")
env['+ CXXFLAGS'].append("-Wno-error=unused-variable")
env['+ CXXFLAGS'].append("-Wno-error=unused-private-field")
Expand Down

0 comments on commit 4ca005b

Please sign in to comment.