diff --git a/Unity/build.sh b/Unity/build.sh index 5e0aa93845..38a48b835b 100755 --- a/Unity/build.sh +++ b/Unity/build.sh @@ -18,11 +18,11 @@ fi cd linux-build if [ "$(uname)" == "Darwin" ]; then - export CC=/usr/local/opt/llvm@8/bin/clang - export CXX=/usr/local/opt/llvm@8/bin/clang++ + export CC=/usr/local/opt/llvm@18/bin/clang + export CXX=/usr/local/opt/llvm@18/bin/clang++ else - export CC="clang-8" - export CXX="clang++-8" + export CC="clang-18" + export CXX="clang++-18" fi # check for local cmake build created by setup.sh diff --git a/build.sh b/build.sh index 8b45d64ba1..cfde0f4f0a 100755 --- a/build.sh +++ b/build.sh @@ -64,11 +64,11 @@ if [ "$(uname)" == "Darwin" ]; then export CXX="$(brew --prefix)/opt/llvm/bin/clang++" else if $gcc; then - export CC="gcc-8" - export CXX="g++-8" + export CC="gcc-18" + export CXX="g++-18" else - export CC="clang-8" - export CXX="clang++-8" + export CC="clang-18" + export CXX="clang++-18" fi fi diff --git a/cmake/cmake-modules/CommonSetup.cmake b/cmake/cmake-modules/CommonSetup.cmake index 11d0c9bcb2..f814b18fca 100644 --- a/cmake/cmake-modules/CommonSetup.cmake +++ b/cmake/cmake-modules/CommonSetup.cmake @@ -59,9 +59,9 @@ macro(CommonSetup) if (${CMAKE_CXX_COMPILER_ID} MATCHES "Clang") set(CMAKE_CXX_FLAGS "-stdlib=libc++ -Wno-documentation -Wno-unknown-warning-option ${CMAKE_CXX_FLAGS}") find_package(LLVM REQUIRED CONFIG) - set(CXX_EXP_LIB "-L${LLVM_LIBRARY_DIRS} -lc++fs -ferror-limit=10") + set(CXX_EXP_LIB "-L${LLVM_LIBRARY_DIRS} -ferror-limit=10") else() - set(CXX_EXP_LIB "-lstdc++fs -fmax-errors=10 -Wnoexcept -Wstrict-null-sentinel") + set(CXX_EXP_LIB "-fmax-errors=10 -Wnoexcept -Wstrict-null-sentinel") endif () endif () diff --git a/ros2/src/airsim_ros_pkgs/CMakeLists.txt b/ros2/src/airsim_ros_pkgs/CMakeLists.txt index 6d961a430f..bab55ca2dc 100644 --- a/ros2/src/airsim_ros_pkgs/CMakeLists.txt +++ b/ros2/src/airsim_ros_pkgs/CMakeLists.txt @@ -34,7 +34,7 @@ set(CMAKE_CXX_FLAGS "-O3 -Wall -Wextra -Wnoexcept -Wstrict-null-sentinel") set(CXX_EXP_LIB "-nostdinc++ -I/usr/include/c++/8 -I/usr/include/x86_64-linux-gnu/c++/8 -nodefaultlibs -l/usr/lib/x86_64-linux-gnu/libc++.so -l/usr/lib/x86_64-linux-gnu/libc++abi.so -lm -lc -lgcc_s -lgcc --lstdc++fs -fmax-errors=10") +--fmax-errors=10") set(RPC_LIB_INCLUDES " ${AIRSIM_ROOT}/external/rpclib/rpclib-2.3.0/include") set(RPC_LIB rpc) message(STATUS "found RPC_LIB_INCLUDES=${RPC_LIB_INCLUDES}") diff --git a/setup.sh b/setup.sh index fd0b71e203..5edf87854e 100755 --- a/setup.sh +++ b/setup.sh @@ -50,7 +50,7 @@ else #linux software-properties-common \ wget \ libvulkan1 \ - vulkan-utils + vulkan-tools #install clang and build tools VERSION=$(lsb_release -rs | cut -d. -f1) @@ -60,7 +60,7 @@ else #linux wget -O - http://apt.llvm.org/llvm-snapshot.gpg.key | sudo apt-key add - sudo apt-get update fi - sudo apt-get install -y clang-8 clang++-8 libc++-8-dev libc++abi-8-dev + sudo apt-get install -y clang-18 clang++-18 libc++-18-dev libc++abi-18-dev fi if ! which cmake; then