Skip to content

Commit

Permalink
use libc++
Browse files Browse the repository at this point in the history
  • Loading branch information
PhilippGrulich committed Feb 17, 2023
1 parent 7483b11 commit bd9b52b
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions custom-triplets/arm64-linux-nes.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ set(VCPKG_LIBRARY_LINKAGE static)

set(VCPKG_CMAKE_SYSTEM_NAME Linux)
set(VCPKG_CXX_FLAGS "${VCPKG_CXX_FLAGS} -stdlib=libc++")
set(VCPKG_C_FLAGS "${VCPKG_C_FLAGS}")
if(NOT CMAKE_HOST_SYSTEM_PROCESSOR)
execute_process(COMMAND "uname" "-m" OUTPUT_VARIABLE CMAKE_HOST_SYSTEM_PROCESSOR OUTPUT_STRIP_TRAILING_WHITESPACE)
endif()
Expand Down
2 changes: 1 addition & 1 deletion custom-triplets/arm64-osx-nes.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ set(VCPKG_LIBRARY_LINKAGE static)
set(VCPKG_CMAKE_SYSTEM_NAME Darwin)
set(VCPKG_OSX_ARCHITECTURES arm64)
set(VCPKG_CXX_FLAGS "${VCPKG_CXX_FLAGS} -stdlib=libc++")

set(VCPKG_C_FLAGS "${VCPKG_C_FLAGS}")
if (PORT STREQUAL paho-mqtt)
set(VCPKG_LIBRARY_LINKAGE static)
endif()
Expand Down
1 change: 1 addition & 0 deletions custom-triplets/x64-linux-nes.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ set(VCPKG_LIBRARY_LINKAGE static)

set(VCPKG_CMAKE_SYSTEM_NAME Linux)
set(VCPKG_CXX_FLAGS "${VCPKG_CXX_FLAGS} -stdlib=libc++")
set(VCPKG_C_FLAGS "${VCPKG_C_FLAGS}")
if(NOT CMAKE_HOST_SYSTEM_PROCESSOR)
execute_process(COMMAND "uname" "-m" OUTPUT_VARIABLE CMAKE_HOST_SYSTEM_PROCESSOR OUTPUT_STRIP_TRAILING_WHITESPACE)
endif()
Expand Down
1 change: 1 addition & 0 deletions custom-triplets/x64-osx-nes.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ set(VCPKG_LIBRARY_LINKAGE static)
set(VCPKG_CMAKE_SYSTEM_NAME Darwin)
set(VCPKG_OSX_ARCHITECTURES x86_64)
set(VCPKG_CXX_FLAGS "${VCPKG_CXX_FLAGS} -stdlib=libc++")
set(VCPKG_C_FLAGS "${VCPKG_C_FLAGS}")

if (PORT STREQUAL paho-mqtt)
set(VCPKG_LIBRARY_LINKAGE static)
Expand Down
2 changes: 1 addition & 1 deletion docker/entrypoint-build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ then
else
echo "USE X64"
fi
export CC=clang++ CXX=clang++
export CC=clang CXX=clang++
if [ $# -eq 0 ]
then
cd /build_dir/
Expand Down

0 comments on commit bd9b52b

Please sign in to comment.