Skip to content

Commit

Permalink
[R] error out when trying to compile with msvc (#11148)
Browse files Browse the repository at this point in the history
  • Loading branch information
david-cortes authored Jan 7, 2025
1 parent a13147b commit 7f1add8
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions R-package/src/xgboost_R.cc
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,10 @@

#include "./xgboost_R.h" // Must follow other includes.

#ifdef _MSC_VER
#error "Compilation of R package with MSVC is not supported due to issues handling R headers"
#endif

namespace {

/* Note: this class is used as a throwable exception.
Expand Down

0 comments on commit 7f1add8

Please sign in to comment.