-
Notifications
You must be signed in to change notification settings - Fork 149
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of github.com:microsoft/onnxruntime-genai into wa…
…ngye/cg
- Loading branch information
Showing
3 changed files
with
19 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
function(genai_set_target_compile_options target) | ||
if (MSVC) | ||
check_cxx_compiler_flag(-sdl HAS_SDL) | ||
check_cxx_compiler_flag(-Qspectre HAS_QSPECTRE) | ||
if (HAS_SDL) | ||
target_compile_options(${target} PRIVATE "/sdl") | ||
endif () | ||
if (HAS_QSPECTRE) | ||
target_compile_options(${target} PRIVATE "/Qspectre") | ||
endif () | ||
if (NOT CMAKE_SYSTEM_PROCESSOR MATCHES "arm" AND NOT USE_CUDA) | ||
target_compile_options(${target} PRIVATE "/CETCOMPAT") | ||
endif () | ||
endif () | ||
endfunction() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters