Fixed build issue with clang in 'make checkcpp'

The makefile in vendor/testcpp folder has hardcoded g++
as cpp compiler and linker. Updated the makefile to take
the compiler which is used to build the library.

AMD-Internal: [CPUPL-1873]
Change-Id: Ib0bcbb8fccd0ff6f90b49b3b1e4a272cf3bad361
This commit is contained in:
Dipal M Zambare
2021-09-19 23:02:57 +05:30
parent 7196b86f05
commit a8e47a82c0

View File

@@ -3,7 +3,7 @@
# libraries.
#
# Copyright (C) 2014, The University of Texas at Austin
# Copyright (C) 2017 - 2019, Advanced Micro Devices, Inc.
# Copyright (C) 2017 - 2021, Advanced Micro Devices, Inc.
#
# Redistribution and use in source and binary forms, with or without
# modification, are permitted provided that the following conditions are
@@ -112,7 +112,9 @@ TEST_OBJS := $(patsubst $(TEST_SRC_PATH)/%.c, \
# while building BLIS.
CINCFLAGS := -I$(INC_PATH)
CXX = g++
# Use CXX from the blis configuration, this will insure that
# correct compiler and compiler version is used to build testcpp folder
#CXX = g++
# Use the CFLAGS for the configuration family.
override CFLAGS += $(call get-sandbox-cxxflags-for,$(CONFIG_NAME))