Skip to content
This repository has been archived by the owner on Mar 27, 2024. It is now read-only.

Commit

Permalink
Ubuntu のビルドで _LIBCPP_HARDENING_MODE を指定する
Browse files Browse the repository at this point in the history
  • Loading branch information
enm10k committed Mar 5, 2024
1 parent 5055978 commit 9b7cec5
Show file tree
Hide file tree
Showing 6 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions sdl_sample/ubuntu-20.04_armv8_jetson/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 1 addition & 0 deletions sdl_sample/ubuntu-20.04_x86_64/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 1 addition & 0 deletions sdl_sample/ubuntu-22.04_x86_64/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 1 addition & 0 deletions sumomo/ubuntu-20.04_armv8_jetson/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 1 addition & 0 deletions sumomo/ubuntu-20.04_x86_64/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
1 change: 1 addition & 0 deletions sumomo/ubuntu-22.04_x86_64/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 9b7cec5

Please sign in to comment.