fix: Better IR file format ext handling

This fix makes ocloc honor IR file format when picking
extension for the output file.
Additionally, this commit removes reduntant IR output when
compiling from IR.

Related-To: NEO-15876

Signed-off-by: Chodor, Jaroslaw <jaroslaw.chodor@intel.com>
This commit is contained in:
Chodor, Jaroslaw
2025-09-02 17:54:25 +00:00
committed by Compute-Runtime-Automation
parent abb713e18f
commit 1aa869d67d
5 changed files with 61 additions and 6 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright (C) 2018-2022 Intel Corporation
* Copyright (C) 2018-2025 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@@ -12,6 +12,11 @@
using NEO::Hash;
TEST(ToLower, GiventStringThenChangeItToLowerCase) {
std::string ls = StringHelpers::toLower("SomeTEXT");
EXPECT_STREQ("sometext", ls.c_str());
}
TEST(CreateCombinedStrings, GivenSingleStringWhenCreatingCombinedStringThenDstStringMatchesSrcString) {
std::string dstString;
size_t dstStringSizeInBytes = 0;