mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-29 09:03:14 +08:00
Change-Id: I34eb993b562c77f56d8fbd51a02ee266c1f76678 Signed-off-by: Mateusz Jablonski <mateusz.jablonski@intel.com>
21 lines
518 B
C++
21 lines
518 B
C++
/*
|
|
* Copyright (C) 2018-2020 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#include "shared/source/os_interface/os_library.h"
|
|
|
|
#include "offline_compiler/offline_compiler.h"
|
|
#include "offline_compiler/utilities/linux/safety_guard_linux.h"
|
|
|
|
using namespace NEO;
|
|
|
|
int buildWithSafetyGuard(OfflineCompiler *compiler) {
|
|
SafetyGuardLinux safetyGuard;
|
|
int retVal = 0;
|
|
|
|
return safetyGuard.call<int, OfflineCompiler, decltype(&OfflineCompiler::build)>(compiler, &OfflineCompiler::build, retVal);
|
|
}
|