Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 7 additions & 1 deletion backends/vulkan/targets.bzl
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,13 @@ load("@fbsource//tools/build_defs:platform_defs.bzl", "ANDROID", "CXX", "FBCODE"


def get_vulkan_compiler_flags():
return ["-Wno-missing-prototypes", "-Wno-global-constructors"]
return select({
"DEFAULT": [
"-Wno-global-constructors",
"-Wno-missing-prototypes",
],
"ovr_config//os:windows": [],
})

def get_labels(no_volk):
if no_volk:
Expand Down
5 changes: 5 additions & 0 deletions runtime/core/named_data_map.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,12 @@
*/

#pragma once

#ifdef __GNUC__
// Disable -Wdeprecated-declarations, as some builds use 'Werror'.
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
#endif

#include <executorch/runtime/core/exec_aten/exec_aten.h>
#include <executorch/runtime/core/freeable_buffer.h>
Expand Down Expand Up @@ -78,4 +81,6 @@ class ET_EXPERIMENTAL NamedDataMap {
} // namespace runtime
} // namespace executorch

#ifdef __GNUC__
#pragma GCC diagnostic pop
#endif
5 changes: 5 additions & 0 deletions runtime/executor/method.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,12 @@
*/

#pragma once

#ifdef __GNUC__
// Disable -Wdeprecated-declarations, as some builds use 'Werror'.
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
#endif

#include <executorch/runtime/core/evalue.h>
#include <executorch/runtime/core/event_tracer.h>
Expand Down Expand Up @@ -402,4 +405,6 @@ using ::executorch::runtime::Method;
} // namespace executor
} // namespace torch

#ifdef __GNUC__
#pragma GCC diagnostic pop
#endif
5 changes: 5 additions & 0 deletions runtime/executor/program.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,12 @@
*/

#pragma once

#ifdef __GNUC__
// Disable -Wdeprecated-declarations, as some builds use 'Werror'.
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
#endif

#include <cinttypes>
#include <cstdint>
Expand Down Expand Up @@ -308,4 +311,6 @@ using ::executorch::runtime::Program;
} // namespace executor
} // namespace torch

#ifdef __GNUC__
#pragma GCC diagnostic pop
#endif
6 changes: 6 additions & 0 deletions runtime/executor/tensor_parser.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,12 @@
*/

#pragma once

#ifdef __GNUC__
// Disable -Wdeprecated-declarations, as some builds use 'Werror'.
#pragma GCC diagnostic push
#pragma GCC diagnostic ignored "-Wdeprecated-declarations"
#endif

#include <executorch/runtime/core/evalue.h>
#include <executorch/runtime/core/exec_aten/exec_aten.h>
Expand Down Expand Up @@ -154,4 +157,7 @@ using ::executorch::runtime::deserialization::parseTensorList;
} // namespace deserialization
} // namespace executor
} // namespace torch

#ifdef __GNUC__
#pragma GCC diagnostic pop
#endif
Loading