We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9e2defb commit 28686b4Copy full SHA for 28686b4
runtime/flang/CMakeLists.txt
@@ -560,12 +560,21 @@ set_property(
560
PG_PIC
561
)
562
563
-set_source_files_properties(
564
- ${I8_FILES_DIR}/red_norm2_stride1.c
565
- red_norm2_stride1.c
566
- PROPERTIES
567
- COMPILE_FLAGS "-ffast-math"
568
- )
+if (NOT MSVC OR "${CMAKE_C_COMPILER_FRONTEND_VARIANT}" STREQUAL "GNU")
+ set_source_files_properties(
+ ${I8_FILES_DIR}/red_norm2_stride1.c
+ red_norm2_stride1.c
+ PROPERTIES
+ COMPILE_FLAGS "-ffast-math"
569
+ )
570
+else()
571
572
573
574
575
+ COMPILE_FLAGS "/fp:fast"
576
577
+endif()
578
579
## CMake does not handle module dependencies between Fortran files,
580
## unless using the Ninja generator, we need to help it
0 commit comments