mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-05 09:09:04 +08:00
Move environment_variables to shared
Change-Id: Ibc101930bc83c10f117c9408ee41d09851d89e2d Signed-off-by: Mateusz Hoppe <mateusz.hoppe@intel.com>
This commit is contained in:
committed by
sys_ocldev
parent
01709dea50
commit
2999448c32
19
shared/source/dll/windows/environment_variables.cpp
Normal file
19
shared/source/dll/windows/environment_variables.cpp
Normal file
@@ -0,0 +1,19 @@
|
||||
/*
|
||||
* Copyright (C) 2019-2020 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
*/
|
||||
|
||||
#include "shared/source/os_interface/windows/environment_variables.h"
|
||||
|
||||
#include "shared/source/debug_settings/debug_settings_manager.h"
|
||||
|
||||
#include <Windows.h>
|
||||
|
||||
uint32_t getEnvironmentVariable(const char *name, char *outBuffer, uint32_t outBufferSize) {
|
||||
if (NEO::DebugManager.registryReadAvailable() == false) {
|
||||
return 0;
|
||||
}
|
||||
return GetEnvironmentVariableA(name, outBuffer, outBufferSize);
|
||||
}
|
||||
Reference in New Issue
Block a user