onnxruntime/tools/ci_build/github
Changming Sun e91d91ae4f
Fix a build issue: /MP was not enabled correctly (#19190)
### Description

In PR #19073 I mistunderstood the value of "--parallel". Instead of
testing if args.parallel is None or not , I should test the returned
value of number_of_parallel_jobs function.

If build.py was invoked without --parallel, then args.parallel equals to
1. Because it is the default value. Then we should not add "/MP".
However, the current code adds it. Because if `args.paralllel` is
evaluated to `if 1` , which is True.
If build.py was invoked with --parallel with additional numbers, then
args.parallel equals to 0. Because it is unspecified. Then we should add
"/MP". However, the current code does not add it. Because `if
args.paralllel` is evaluated to `if 0` , which is False.

This also adds a new build flag: use_binskim_compliant_compile_flags, which is intended to be only used in ONNX Runtime team's build pipelines for compliance reasons. 

### Motivation and Context
2024-01-29 12:45:38 -08:00
..
android Add LeakyRelu to list of NNAPI operators (#18880) 2023-12-20 14:44:31 +10:00
apple Enable MacOS build in ORT Objc Pod (#18786) 2023-12-13 13:50:42 -08:00
azure-pipelines Fix a build issue: /MP was not enabled correctly (#19190) 2024-01-29 12:45:38 -08:00
js Add MacOS build to ORT C Pod (#18550) 2023-11-28 10:11:53 -08:00
linux Fix a build issue: /MP was not enabled correctly (#19190) 2024-01-29 12:45:38 -08:00
pai [ROCm] fix security warning (#19017) 2024-01-05 10:05:34 -08:00
windows Enable Address Sanitizer in CI (#19073) 2024-01-12 07:24:40 -08:00
Doxyfile_csharp.cfg [C#] Rename unreleased API, add utilities (#16806) 2023-08-02 10:06:42 -07:00