This is an archive of the discontinued LLVM Phabricator instance.

Remove obsolete msvc workaround from AddLLVM.cmake
ClosedPublic

Authored by stella.stamenova on Sep 9 2021, 9:27 AM.

Details

Summary

The original change to add the workaround is from 10 years ago and a lot has happened with msvc and cmake and llvm's usage of cmake since and we no longer need the workaround for any scenarios that I am aware of. Build more is now correctly configured for multi-configuration generators such as Visual Studio.

The workaround is, however, causing issues with some of the recent mlir tests as because of the workaround we cannot correctly determine whether assertions are enabled (see https://reviews.llvm.org/D105961).

The original change is:

commit b46fdac4609df2613177813d43a124e3d9a8a306
Author: Andrew Trick <atrick@apple.com>
Date:   Tue Jun 28 16:32:01 2011

    cmake: Our MSVC build does not support config-time build mode.
    
    llvm-svn: 134008

Diff Detail

Event Timeline

stella.stamenova requested review of this revision.Sep 9 2021, 9:27 AM
mehdi_amini accepted this revision.Sep 9 2021, 10:47 AM
This revision is now accepted and ready to land.Sep 9 2021, 10:47 AM
This revision was landed with ongoing or failed builds.Sep 9 2021, 10:50 AM
This revision was automatically updated to reflect the committed changes.