Skip to content

Commit fa853b9

Browse files
committed
build: add missing headers for GCC 15
For using fixed width integer types[1], the `<cstdint>`[2] C++ header needs to be explicitly included with GCC 15 due to changes[3] in libstdc++. For details, see the documentation[4] about porting to GCC 15. [1] https://en.cppreference.com/w/cpp/types/integer [2] https://en.cppreference.com/w/cpp/header/cstdint [3] https://gcc.gnu.org/git/?p=gcc.git;a=commit;h=3a817a4a5a6d94da9127af3be9f84a74e3076ee2 [4] https://gcc.gnu.org/gcc-15/porting_to.html#cxx Signed-off-by: Daniel Bermond <[email protected]>
1 parent 7d9399e commit fa853b9

File tree

10 files changed

+16
-6
lines changed

10 files changed

+16
-6
lines changed

shared/generate_cpp_array/source/generate_cpp_array.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
/*
2-
* Copyright (C) 2020-2024 Intel Corporation
2+
* Copyright (C) 2020-2025 Intel Corporation
33
*
44
* SPDX-License-Identifier: MIT
55
*
66
*/
77

8+
#include <cstdint>
89
#include <fstream>
910
#include <iomanip>
1011
#include <iostream>

shared/offline_compiler/source/decoder/iga_wrapper.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111

1212
#include "igfxfmid.h"
1313

14+
#include <cstdint>
1415
#include <memory>
1516
#include <string>
1617

shared/offline_compiler/source/ocloc_arg_helper.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (C) 2020-2024 Intel Corporation
2+
* Copyright (C) 2020-2025 Intel Corporation
33
*
44
* SPDX-License-Identifier: MIT
55
*
@@ -11,6 +11,7 @@
1111
#include "shared/source/utilities/const_stringref.h"
1212

1313
#include <algorithm>
14+
#include <cstdint>
1415
#include <fstream>
1516
#include <map>
1617
#include <memory>

shared/source/debugger/debugger.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
/*
2-
* Copyright (C) 2020-2023 Intel Corporation
2+
* Copyright (C) 2020-2025 Intel Corporation
33
*
44
* SPDX-License-Identifier: MIT
55
*
66
*/
77

88
#pragma once
9+
#include <cstdint>
910
#include <memory>
1011
namespace NEO {
1112
struct HardwareInfo;

shared/source/gmm_helper/gmm_helper.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
*/
77

88
#pragma once
9+
#include <cstdint>
910
#include <memory>
1011

1112
namespace NEO {

shared/source/os_interface/device_factory.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
/*
2-
* Copyright (C) 2018-2023 Intel Corporation
2+
* Copyright (C) 2018-2025 Intel Corporation
33
*
44
* SPDX-License-Identifier: MIT
55
*
66
*/
77

88
#pragma once
9+
#include <cstdint>
910
#include <memory>
1011
#include <string>
1112
#include <vector>

shared/source/os_interface/os_memory.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
/*
2-
* Copyright (C) 2019-2022 Intel Corporation
2+
* Copyright (C) 2019-2025 Intel Corporation
33
*
44
* SPDX-License-Identifier: MIT
55
*
66
*/
77

88
#pragma once
9+
#include <cstdint>
910
#include <memory>
1011
#include <vector>
1112

shared/source/os_interface/os_time.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,12 @@
11
/*
2-
* Copyright (C) 2018-2024 Intel Corporation
2+
* Copyright (C) 2018-2025 Intel Corporation
33
*
44
* SPDX-License-Identifier: MIT
55
*
66
*/
77

88
#pragma once
9+
#include <cstdint>
910
#include <memory>
1011
#include <optional>
1112

shared/source/program/program_info.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
#include "shared/source/utilities/arrayref.h"
1111

1212
#include <cstddef>
13+
#include <cstdint>
1314
#include <memory>
1415
#include <string>
1516
#include <unordered_map>

shared/source/utilities/software_tags.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
#pragma once
99
#include "shared/source/helpers/string.h"
1010

11+
#include <cstdint>
1112
#include <string>
1213

1314
namespace NEO {

0 commit comments

Comments
 (0)