From 9b7cec5cdeaa9b68d85b6a01d453250e21225d0a Mon Sep 17 00:00:00 2001 From: enm10k Date: Wed, 31 Jan 2024 14:49:11 +0900 Subject: [PATCH] =?UTF-8?q?Ubuntu=20=E3=81=AE=E3=83=93=E3=83=AB=E3=83=89?= =?UTF-8?q?=E3=81=A7=20=5FLIBCPP=5FHARDENING=5FMODE=20=E3=82=92=E6=8C=87?= =?UTF-8?q?=E5=AE=9A=E3=81=99=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- sdl_sample/ubuntu-20.04_armv8_jetson/run.py | 1 + sdl_sample/ubuntu-20.04_x86_64/run.py | 1 + sdl_sample/ubuntu-22.04_x86_64/run.py | 1 + sumomo/ubuntu-20.04_armv8_jetson/run.py | 1 + sumomo/ubuntu-20.04_x86_64/run.py | 1 + sumomo/ubuntu-22.04_x86_64/run.py | 1 + 6 files changed, 6 insertions(+) diff --git a/sdl_sample/ubuntu-20.04_armv8_jetson/run.py b/sdl_sample/ubuntu-20.04_armv8_jetson/run.py index 37fb20e..9f935bf 100644 --- a/sdl_sample/ubuntu-20.04_armv8_jetson/run.py +++ b/sdl_sample/ubuntu-20.04_armv8_jetson/run.py @@ -189,6 +189,7 @@ def main(): '-DCMAKE_FIND_ROOT_PATH_MODE_PACKAGE=BOTH', f'-DCMAKE_SYSROOT={sysroot}', f"-DLIBCXX_INCLUDE_DIR={cmake_path(os.path.join(webrtc_info.libcxx_dir, 'include'))}", + '-DCMAKE_CXX_FLAGS=\'-D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE\'', ] cmd(['cmake', os.path.join(PROJECT_DIR)] + cmake_args) diff --git a/sdl_sample/ubuntu-20.04_x86_64/run.py b/sdl_sample/ubuntu-20.04_x86_64/run.py index 4f327d2..01dca33 100644 --- a/sdl_sample/ubuntu-20.04_x86_64/run.py +++ b/sdl_sample/ubuntu-20.04_x86_64/run.py @@ -153,6 +153,7 @@ def main(): f"-DCMAKE_C_COMPILER={os.path.join(webrtc_info.clang_dir, 'bin', 'clang')}", f"-DCMAKE_CXX_COMPILER={os.path.join(webrtc_info.clang_dir, 'bin', 'clang++')}", f"-DLIBCXX_INCLUDE_DIR={cmake_path(os.path.join(webrtc_info.libcxx_dir, 'include'))}", + '-DCMAKE_CXX_FLAGS=\'-D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE\'', ] cmd(['cmake', os.path.join(PROJECT_DIR)] + cmake_args) diff --git a/sdl_sample/ubuntu-22.04_x86_64/run.py b/sdl_sample/ubuntu-22.04_x86_64/run.py index 6ff56fb..44a161b 100644 --- a/sdl_sample/ubuntu-22.04_x86_64/run.py +++ b/sdl_sample/ubuntu-22.04_x86_64/run.py @@ -153,6 +153,7 @@ def main(): f"-DCMAKE_C_COMPILER={os.path.join(webrtc_info.clang_dir, 'bin', 'clang')}", f"-DCMAKE_CXX_COMPILER={os.path.join(webrtc_info.clang_dir, 'bin', 'clang++')}", f"-DLIBCXX_INCLUDE_DIR={cmake_path(os.path.join(webrtc_info.libcxx_dir, 'include'))}", + '-DCMAKE_CXX_FLAGS=\'-D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE\'', ] cmd(['cmake', os.path.join(PROJECT_DIR)] + cmake_args) diff --git a/sumomo/ubuntu-20.04_armv8_jetson/run.py b/sumomo/ubuntu-20.04_armv8_jetson/run.py index 88a9ca6..f254a3f 100644 --- a/sumomo/ubuntu-20.04_armv8_jetson/run.py +++ b/sumomo/ubuntu-20.04_armv8_jetson/run.py @@ -189,6 +189,7 @@ def main(): '-DCMAKE_FIND_ROOT_PATH_MODE_PACKAGE=BOTH', f'-DCMAKE_SYSROOT={sysroot}', f"-DLIBCXX_INCLUDE_DIR={cmake_path(os.path.join(webrtc_info.libcxx_dir, 'include'))}", + '-DCMAKE_CXX_FLAGS=\'-D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE\'', ] cmd(['cmake', os.path.join(PROJECT_DIR)] + cmake_args) diff --git a/sumomo/ubuntu-20.04_x86_64/run.py b/sumomo/ubuntu-20.04_x86_64/run.py index 9c8fd1c..c91aa53 100644 --- a/sumomo/ubuntu-20.04_x86_64/run.py +++ b/sumomo/ubuntu-20.04_x86_64/run.py @@ -154,6 +154,7 @@ def main(): f"-DCMAKE_C_COMPILER={os.path.join(webrtc_info.clang_dir, 'bin', 'clang')}", f"-DCMAKE_CXX_COMPILER={os.path.join(webrtc_info.clang_dir, 'bin', 'clang++')}", f"-DLIBCXX_INCLUDE_DIR={cmake_path(os.path.join(webrtc_info.libcxx_dir, 'include'))}", + '-DCMAKE_CXX_FLAGS=\'-D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE\'', ] cmd(['cmake', os.path.join(PROJECT_DIR)] + cmake_args) diff --git a/sumomo/ubuntu-22.04_x86_64/run.py b/sumomo/ubuntu-22.04_x86_64/run.py index a15f178..d495bd8 100644 --- a/sumomo/ubuntu-22.04_x86_64/run.py +++ b/sumomo/ubuntu-22.04_x86_64/run.py @@ -154,6 +154,7 @@ def main(): f"-DCMAKE_C_COMPILER={os.path.join(webrtc_info.clang_dir, 'bin', 'clang')}", f"-DCMAKE_CXX_COMPILER={os.path.join(webrtc_info.clang_dir, 'bin', 'clang++')}", f"-DLIBCXX_INCLUDE_DIR={cmake_path(os.path.join(webrtc_info.libcxx_dir, 'include'))}", + '-DCMAKE_CXX_FLAGS=\'-D_LIBCPP_HARDENING_MODE=_LIBCPP_HARDENING_MODE_EXTENSIVE\'', ] cmd(['cmake', os.path.join(PROJECT_DIR)] + cmake_args)