File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -528,11 +528,13 @@ endif()
528
528
# failure logs more deterministic and most importantly makes builds more
529
529
# deterministic. Debuggers usually have a path mapping feature to ensure the
530
530
# files are still found.
531
- if (CONFIG_OUTPUT_STRIP_PATHS )
532
- add_compile_options (-fmacro-prefix-map=${NUTTX_DIR}= )
533
- add_compile_options (-fmacro-prefix-map=${NUTTX_APPS_DIR}= )
534
- add_compile_options (-fmacro-prefix-map=${NUTTX_BOARD_ABS_DIR}= )
535
- add_compile_options (-fmacro-prefix-map=${NUTTX_CHIP_ABS_DIR}= )
531
+ if (NOT MSVC )
532
+ if (CONFIG_OUTPUT_STRIP_PATHS )
533
+ add_compile_options (-fmacro-prefix-map=${NUTTX_DIR}= )
534
+ add_compile_options (-fmacro-prefix-map=${NUTTX_APPS_DIR}= )
535
+ add_compile_options (-fmacro-prefix-map=${NUTTX_BOARD_ABS_DIR}= )
536
+ add_compile_options (-fmacro-prefix-map=${NUTTX_CHIP_ABS_DIR}= )
537
+ endif ()
536
538
endif ()
537
539
538
540
add_definitions (-D__NuttX__ )
You can’t perform that action at this time.
0 commit comments