Skip to content

Commit 3c5a2c7

Browse files
author
Simon Moll
committed
[sotoc] Default to /opt/nec/ve/bin/ncc if ncc wasn't found on the build system
1 parent 84956a0 commit 3c5a2c7

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

clang/tools/nec-aurora-build/CMakeLists.txt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ find_program(NECAURORA_TARGET_COMPILER_NCC
2626
if (NECAURORA_TARGET_COMPILER_NCC)
2727
set(TARGET_COMPILER_NCC "${NECAURORA_TARGET_COMPILER_NCC}")
2828
else()
29-
message(WARNING "Could not find ncc compiler. ncc will not be available as VE target compiler")
29+
set(TARGET_COMPILER_NCC "/opt/nec/ve/bin/ncc")
30+
message(WARNING "- sotoc: Could not find ncc compiler. Defaulting to path ${TARGET_COMPILER_NCC}")
3031
endif()
3132

3233
# Set Clang and RVClang target compiler variables
@@ -44,7 +45,7 @@ set(NECAURORA_DEFAULT_TARGET_COMPILER
4445
"ncc"
4546
CACHE STRING
4647
"Default target compiler for NEC OpenMP target (-fopenmp-nec-compiler=<this_value>)")
47-
message("OMPT for SX-Aurora: Using the default target compiler option \"${NECAURORA_DEFAULT_TARGET_COMPILER}\"" )
48+
message("- sotoc: Using the default target compiler option \"${NECAURORA_DEFAULT_TARGET_COMPILER}\"" )
4849

4950
find_library(
5051
NECAURORA_LIBAVEOVE_STATIC
@@ -94,7 +95,7 @@ endif()
9495

9596
find_package(NECAURORA_LIBELF)
9697
if(NOT NECAURORA_LIBELF_FOUND)
97-
message(FATAL_ERROR "LIBELF not found.")
98+
message(FATAL_ERROR "- sotoc: LIBELF not found.")
9899
endif()
99100

100101
configure_file(config.h.in config.h @ONLY)

0 commit comments

Comments
 (0)