Skip to content
This repository was archived by the owner on Nov 27, 2025. It is now read-only.

Commit 899b076

Browse files
specify compilation flags for each target that did not pass the binskim scan
Signed-off-by: Zhu, Shaojie <[email protected]>
1 parent cb1282d commit 899b076

File tree

34 files changed

+34
-34
lines changed

34 files changed

+34
-34
lines changed

llvm/lib/Analysis/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ add_llvm_component_library(LLVMAnalysis
162162
TargetParser
163163
)
164164

165-
if(MSVC and BUILD_COMPILER_FOR_DRIVER)
165+
if(MSVC AND BUILD_COMPILER_FOR_DRIVER)
166166
target_compile_options(LLVMAnalysis PRIVATE
167167
/w34146 /w34244 /w34267
168168
)

llvm/lib/BinaryFormat/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ add_llvm_component_library(LLVMBinaryFormat
2222
TargetParser
2323
)
2424

25-
if(MSVC and BUILD_COMPILER_FOR_DRIVER)
25+
if(MSVC AND BUILD_COMPILER_FOR_DRIVER)
2626
target_compile_options(LLVMBinaryFormat PRIVATE
2727
/w34146 /w34244 /w34267
2828
)

llvm/lib/Bitcode/Reader/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ add_llvm_component_library(LLVMBitReader
1818
TargetParser
1919
)
2020

21-
if(MSVC and BUILD_COMPILER_FOR_DRIVER)
21+
if(MSVC AND BUILD_COMPILER_FOR_DRIVER)
2222
target_compile_options(LLVMBitReader PRIVATE
2323
/w34146 /w34244 /w34267
2424
)

llvm/lib/Frontend/Offloading/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ add_llvm_component_library(LLVMFrontendOffloading
1616
TargetParser
1717
)
1818

19-
if(MSVC and BUILD_COMPILER_FOR_DRIVER)
19+
if(MSVC AND BUILD_COMPILER_FOR_DRIVER)
2020
target_compile_options(LLVMFrontendOffloading PRIVATE
2121
/w34146 /w34244 /w34267
2222
)

llvm/lib/Frontend/OpenMP/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ add_llvm_component_library(LLVMFrontendOpenMP
2323
FrontendOffloading
2424
)
2525

26-
if(MSVC and BUILD_COMPILER_FOR_DRIVER)
26+
if(MSVC AND BUILD_COMPILER_FOR_DRIVER)
2727
target_compile_options(LLVMFrontendOpenMP PRIVATE
2828
/w34146 /w34244 /w34267
2929
)

llvm/lib/IR/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,7 @@ add_llvm_component_library(LLVMCore
8888
TargetParser
8989
)
9090

91-
if(MSVC and BUILD_COMPILER_FOR_DRIVER)
91+
if(MSVC AND BUILD_COMPILER_FOR_DRIVER)
9292
target_compile_options(LLVMCore PRIVATE
9393
/w34146 /w34244 /w34267
9494
)

llvm/lib/ProfileData/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ add_llvm_component_library(LLVMProfileData
2929
TargetParser
3030
)
3131

32-
if(MSVC and BUILD_COMPILER_FOR_DRIVER)
32+
if(MSVC AND BUILD_COMPILER_FOR_DRIVER)
3333
target_compile_options(LLVMProfileData PRIVATE
3434
/w34146 /w34244 /w34267
3535
)

llvm/lib/Remarks/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ add_llvm_component_library(LLVMRemarks
2222
intrinsics_gen
2323
)
2424

25-
if(MSVC and BUILD_COMPILER_FOR_DRIVER)
25+
if(MSVC AND BUILD_COMPILER_FOR_DRIVER)
2626
target_compile_options(LLVMRemarks PRIVATE
2727
/w34146 /w34244 /w34267
2828
)

llvm/lib/Support/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ add_llvm_component_library(LLVMSupport
292292
Demangle
293293
)
294294

295-
if(MSVC and BUILD_COMPILER_FOR_DRIVER)
295+
if(MSVC AND BUILD_COMPILER_FOR_DRIVER)
296296
target_compile_options(LLVMSupport PRIVATE
297297
/w34146 /w34244 /w34267
298298
)

llvm/lib/TargetParser/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ add_llvm_component_library(LLVMTargetParser
4040
RISCVTargetParserTableGen
4141
)
4242

43-
if(MSVC and BUILD_COMPILER_FOR_DRIVER)
43+
if(MSVC AND BUILD_COMPILER_FOR_DRIVER)
4444
target_compile_options(LLVMTargetParser PRIVATE
4545
/w34146 /w34244 /w34267
4646
)

0 commit comments

Comments
 (0)