From 4e66d707a292b90a344e32c59eb1dacb67a0e4c1 Mon Sep 17 00:00:00 2001 From: Pablo Tello Date: Mon, 7 Mar 2022 18:20:12 +0000 Subject: Added windows native build support Resolves MLCE-739 Signed-off-by: Pablo Tello Change-Id: I30a11393e928061c82a5c93d8ec195c04a0e838b Reviewed-on: https://review.mlplatform.org/c/ml/ComputeLibrary/+/7279 Tested-by: Arm Jenkins Reviewed-by: Giorgio Arena Comments-Addressed: Arm Jenkins --- tests/framework/command_line/CommonOptions.cpp | 6 +++++- tests/framework/instruments/Instruments.h | 4 ++-- 2 files changed, 7 insertions(+), 3 deletions(-) (limited to 'tests/framework') diff --git a/tests/framework/command_line/CommonOptions.cpp b/tests/framework/command_line/CommonOptions.cpp index 6fb37470c1..e56366c9ab 100644 --- a/tests/framework/command_line/CommonOptions.cpp +++ b/tests/framework/command_line/CommonOptions.cpp @@ -25,7 +25,9 @@ #include "../Framework.h" #include "../printers/Printers.h" +#if !defined(_WIN64) #include +#endif // !defined(_WIN64) using namespace arm_compute::utils; @@ -43,7 +45,9 @@ CommonOptions::CommonOptions(CommandLineParser &parser) log_file(parser.add_option>("log-file")), log_level(), throw_errors(parser.add_option("throw-errors")), - color_output(parser.add_option("color-output", isatty(STDOUT_FILENO))), // Only enable colors by default if we're running in a terminal +#if !defined(_WIN64) + color_output(parser.add_option("color-output", isatty(STDOUT_FILENO))), // Only enable colors by default if we're running in a terminal +#endif // !defined(_WIN64) pretty_console(parser.add_option("pretty-console", false)), json_file(parser.add_option>("json-file")), pretty_file(parser.add_option>("pretty-file")), diff --git a/tests/framework/instruments/Instruments.h b/tests/framework/instruments/Instruments.h index 28c994b119..d80032a032 100644 --- a/tests/framework/instruments/Instruments.h +++ b/tests/framework/instruments/Instruments.h @@ -24,12 +24,12 @@ #ifndef ARM_COMPUTE_TEST_INSTRUMENTS #define ARM_COMPUTE_TEST_INSTRUMENTS -#if !defined(BARE_METAL) && !defined(__APPLE__) && !defined(__OpenBSD__) +#if !defined(_WIN64) && !defined(BARE_METAL) && !defined(__APPLE__) && !defined(__OpenBSD__) #include "MaliCounter.h" #include "OpenCLMemoryUsage.h" #include "OpenCLTimer.h" #include "PMUCounter.h" -#endif /* !defined(BARE_METAL) && !defined(__APPLE__) && !defined(__OpenBSD__) */ +#endif /* !defined(_WIN64) && !defined(BARE_METAL) && !defined(__APPLE__) && !defined(__OpenBSD__) */ #include "SchedulerTimer.h" #include "WallClockTimer.h" -- cgit v1.2.1