From a5c51ef8f9294b9f5730fece7e910fcdfa94fe59 Mon Sep 17 00:00:00 2001 From: Maksim Levental Date: Tue, 5 Sep 2023 14:13:42 -0500 Subject: [PATCH] Disable `-Wno-unknown-warning-option` on windows (#620) * unknownwarning * reformat --- lib/Dialect/AIE/Transforms/CMakeLists.txt | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/lib/Dialect/AIE/Transforms/CMakeLists.txt b/lib/Dialect/AIE/Transforms/CMakeLists.txt index e6232aab33..345dc03507 100644 --- a/lib/Dialect/AIE/Transforms/CMakeLists.txt +++ b/lib/Dialect/AIE/Transforms/CMakeLists.txt @@ -5,9 +5,12 @@ # # (c) Copyright 2021 Xilinx Inc. +if(NOT WIN32) + add_compile_options(-Wno-unknown-warning-option) +endif() -add_compile_options(-Wno-unknown-warning-option) -add_mlir_dialect_library(AIETransforms +add_mlir_dialect_library( + AIETransforms AIEAssignBuffers.cpp AIEAssignLockIDs.cpp AIEFindFlows.cpp @@ -35,5 +38,4 @@ add_mlir_dialect_library(AIETransforms MLIRIR MLIRPass MLIRSupport - MLIRTransformUtils - ) + MLIRTransformUtils)