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)