mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-24 12:23:05 +08:00
Prepend -s option when -cmc is not used
Related-To: NEO-5582 - "-s filename" is added to build options based on filename returned from debugger - when "-cmc" is passed as first option, do not modify user options. Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
This commit is contained in:
committed by
Compute-Runtime-Automation
parent
042e971a93
commit
4191dfdb43
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (C) 2017-2020 Intel Corporation
|
||||
* Copyright (C) 2017-2021 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
@@ -129,12 +129,10 @@ cl_int Program::compile(
|
||||
if (sourceLevelDebuggerNotified[device->getRootDeviceIndex()]) {
|
||||
continue;
|
||||
}
|
||||
appendKernelDebugOptions(*device, internalOptions);
|
||||
std::string filename;
|
||||
appendKernelDebugOptions(*device, internalOptions);
|
||||
notifyDebuggerWithSourceCode(*device, filename);
|
||||
if (!filename.empty()) {
|
||||
options = std::string("-s ") + filename + " " + options;
|
||||
}
|
||||
prependFilePathToOptions(filename);
|
||||
|
||||
sourceLevelDebuggerNotified[device->getRootDeviceIndex()] = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user