mirror of
https://github.com/KhronosGroup/SPIRV-Tools
synced 2024-10-18 11:10:05 +00:00
Explicitly #include <utility> in spirv_target_env.cpp (#5159)
spirv_target_env.cpp uses std::pair, which is defined in utility. Right now, this compiles because utility is provided via transitive includes in other C++ standard library headers provided by the implementation. However, these transitive includes are not guaranteed to exist, and won't exist in certain cases (e.g. compiling against LLVM's libc++ with modules enabled.)
This commit is contained in:
parent
25f6c0cea5
commit
9743701ed5
@ -17,6 +17,7 @@
|
||||
#include <cassert>
|
||||
#include <cstring>
|
||||
#include <string>
|
||||
#include <utility>
|
||||
|
||||
#include "source/spirv_constant.h"
|
||||
#include "spirv-tools/libspirv.h"
|
||||
|
Loading…
Reference in New Issue
Block a user