Skip to content

Commit

Permalink
Remove /LTCG flag (#1690)
Browse files Browse the repository at this point in the history
  • Loading branch information
jslee02 authored Dec 31, 2022
1 parent b623bb0 commit 9bca99a
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 42 deletions.
41 changes: 0 additions & 41 deletions .github/workflows/ci_windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,47 +11,6 @@ on:
- cron: "0 2 * * 0,3" # Run every Sunday and Wednesday at 02:00

jobs:
build_2019:
name: ${{ matrix.build_type }}
runs-on: windows-2019
strategy:
fail-fast: false
matrix:
toolset: [""]
build_type: [Release]
# build_shared_libs: [ON, OFF] # TODO(JS): Enable once shared lib build is resolved
build_shared_libs: [OFF]
env:
BUILD_TYPE: ${{ matrix.build_type }}
VCPKG_ROOT: "C:/dartsim/vcpkg"
VCPKG_BUILD_TAG: v6.13-2022.07.25-0
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Install Dependencies
shell: cmd
run: |
mkdir -p C:\dartsim
choco install -y wget
wget -q https://github.com/dartsim/vcpkg-build/releases/download/%VCPKG_BUILD_TAG%/vcpkg-dartsim-dependencies.zip
unzip -qq vcpkg-dartsim-dependencies.zip -d C:\dartsim
- name: Install Python dependencies
run: |
python -m pip install --upgrade pip
pip install -U pytest
- name: Build
shell: cmd
run: |
mkdir build
cd build
cmake .. -G "Visual Studio 16 2019" -A x64 -Wno-dev ${{ matrix.toolset }} ^
-DCMAKE_BUILD_TYPE=%BUILD_TYPE% ^
-DCMAKE_TOOLCHAIN_FILE="%VCPKG_ROOT%/scripts/buildsystems/vcpkg.cmake" ^
-DDART_MSVC_DEFAULT_OPTIONS=ON ^
-DDART_VERBOSE=ON ^
-DBUILD_SHARED_LIBS=${{ matrix.build_shared_libs }}
cmake --build . --config %BUILD_TYPE% --target ALL_BUILD --parallel
ctest --rerun-failed --output-on-failure -C %BUILD_TYPE%
build_2022:
name: ${{ matrix.build_type }}
runs-on: windows-2022
Expand Down
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ if(MSVC)
add_compile_options(/WX)
endif()
set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} /EHsc /permissive- /Zc:twoPhase-")
set(CMAKE_EXE_LINKER_FLAGS_RELEASE "/LTCG /INCREMENTAL:NO")
set(CMAKE_EXE_LINKER_FLAGS_RELEASE "/INCREMENTAL:NO")
if(NOT DART_MSVC_DEFAULT_OPTIONS)
set(CMAKE_CXX_FLAGS_DEBUG "${CMAKE_CXX_FLAGS_DEBUG} ${DART_RUNTIME_LIBRARY}d /Zi /Gy /W1 /EHsc")
set(CMAKE_CXX_FLAGS_RELEASE "${CMAKE_CXX_FLAGS_RELEASE} ${DART_RUNTIME_LIBRARY} /Zi /GL /Gy /W1 /EHsc")
Expand Down

0 comments on commit 9bca99a

Please sign in to comment.