Skip to content

Commit e6635ab

Browse files
committed
wip ∫ MAY 20 2025 16:19:09
1 parent 1b063ca commit e6635ab

File tree

25 files changed

+48
-27
lines changed

25 files changed

+48
-27
lines changed

.github/workflows/build-presets.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,3 +66,24 @@ jobs:
6666
./install_requirements.sh > /dev/null
6767
cmake --preset ${{ matrix.preset }}
6868
cmake --build cmake-out --parallel
69+
70+
windows:
71+
uses: pytorch/test-infra/.github/workflows/windows_job.yml@main
72+
strategy:
73+
fail-fast: false
74+
matrix:
75+
preset: [pybind]
76+
with:
77+
job-name: build
78+
ref: ${{ github.event_name == 'pull_request' && github.event.pull_request.head.sha || github.sha }}
79+
submodules: recursive
80+
timeout: 90
81+
script: |
82+
set -eux
83+
84+
conda create --yes --quiet -n et python=3.12
85+
conda activate et
86+
87+
./install_requirements.sh > /dev/null
88+
cmake --preset ${{ matrix.preset }}
89+
cmake --build cmake-out --parallel

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -260,7 +260,7 @@ if(EXECUTORCH_BUILD_TESTS)
260260
endif()
261261

262262
# TODO(dbort): Fix these warnings and remove this flag.
263-
set(_common_compile_options -Wno-deprecated-declarations -fPIC)
263+
set(_common_compile_options -fPIC)
264264

265265
# Let files say "include <executorch/path/to/header.h>".
266266
# TODO(#6475): This requires/assumes that the repo lives in a directory named
@@ -622,7 +622,7 @@ if(EXECUTORCH_BUILD_PYBIND)
622622

623623
# compile options for pybind
624624
set(_pybind_compile_options
625-
-Wno-deprecated-declarations
625+
626626
-fPIC
627627
-frtti
628628
-fexceptions

backends/apple/mps/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ endif()
1818

1919
include(${EXECUTORCH_ROOT}/tools/cmake/Utils.cmake)
2020

21-
set(_common_compile_options -Wno-deprecated-declarations)
21+
set(_common_compile_options )
2222
set(_common_include_directories ${EXECUTORCH_ROOT}/..)
2323

2424
set(_mps_schema__include_dir "${CMAKE_BINARY_DIR}/schema/include")

backends/cadence/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ add_compile_definitions(C10_USING_CUSTOM_GENERATED_MACROS)
3030
if(EXECUTORCH_CADENCE_CPU_RUNNER)
3131
include(${EXECUTORCH_ROOT}/tools/cmake/Codegen.cmake)
3232

33-
set(_common_compile_options -Wno-deprecated-declarations -fPIC)
33+
set(_common_compile_options -fPIC)
3434

3535
# Find prebuilt libraries. executorch package should contain portable_ops_lib,
3636
# etdump, bundled_program.

backends/qualcomm/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -261,7 +261,7 @@ if(${CMAKE_SYSTEM_PROCESSOR} MATCHES "x86_64")
261261

262262
if(CMAKE_BUILD_TYPE STREQUAL "Release")
263263
# need to allow exceptions in pybind
264-
set(_pybind_compile_options -Wno-deprecated-declarations -fPIC -frtti
264+
set(_pybind_compile_options -fPIC -frtti
265265
-fexceptions
266266
)
267267
target_compile_options(

backends/xnnpack/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ if(EXECUTORCH_XNNPACK_ENABLE_KLEIDI)
3636
endif()
3737

3838
set(_common_include_directories ${EXECUTORCH_ROOT}/..)
39-
set(_common_compile_options -Wno-deprecated-declarations -fPIC)
39+
set(_common_compile_options -fPIC)
4040

4141
set(_xnnpack_schema__include_dir "${CMAKE_BINARY_DIR}/schema/include")
4242
# Paths to headers generated from the .fbs files.

configurations/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ endif()
1818

1919
include(${EXECUTORCH_ROOT}/tools/cmake/Utils.cmake)
2020

21-
set(_common_compile_options -Wno-deprecated-declarations)
21+
set(_common_compile_options )
2222

2323
include(${EXECUTORCH_ROOT}/tools/cmake/Utils.cmake)
2424
include(${EXECUTORCH_ROOT}/tools/cmake/Codegen.cmake)

examples/apple/mps/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ add_compile_options("-Wall" "-Werror")
3333

3434
include(${EXECUTORCH_ROOT}/tools/cmake/Utils.cmake)
3535

36-
set(_common_compile_options -Wno-deprecated-declarations -fPIC
36+
set(_common_compile_options -fPIC
3737
-DET_EVENT_TRACER_ENABLED
3838
)
3939

examples/arm/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ if(NOT PYTHON_EXECUTABLE)
2727
resolve_python_executable()
2828
endif()
2929

30-
set(_common_compile_options -Wno-deprecated-declarations -fPIC)
30+
set(_common_compile_options -fPIC)
3131

3232
# Let files say "include <executorch/path/to/header.h>".
3333
set(_common_include_directories ${EXECUTORCH_ROOT}/..)

examples/devtools/CMakeLists.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ if(NOT PYTHON_EXECUTABLE)
2929
resolve_python_executable()
3030
endif()
3131

32-
set(_common_compile_options -Wno-deprecated-declarations -fPIC)
32+
set(_common_compile_options -fPIC)
3333

3434
# Let files say "include <executorch/path/to/header.h>".
3535
set(_common_include_directories ${EXECUTORCH_ROOT}/..)

0 commit comments

Comments
 (0)