-
Notifications
You must be signed in to change notification settings - Fork 3.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[R-package] Fallback to MinGW when VS build fails #664
Changes from 1 commit
70b1bc6
7570715
e2aead2
2c5ea8e
4098fc1
48f8f44
ed00f7b
2914c1f
52276e6
9557b61
6a4c23c
31bbe84
6bcc4b0
91bcdb3
9ccac03
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -56,6 +56,7 @@ if (!use_precompile) { | |
cmake_cmd <- paste0(cmake_base, " -DCMAKE_GENERATOR_PLATFORM=x64 ") | ||
tryVS <- system(paste0(cmake_cmd, " ..")) | ||
if (tryVS == 1) { | ||
system("rm -rf .") | ||
cmake_cmd <- paste0(cmake_base, " -G \"MinGW Makefiles\" ") # Switch to MinGW on failure, try build once | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. It is better to remove all cmake caches if last camke is fail. you can delete all contents in There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Do you know where is the build folder in all the folders? I can't seem to get rid of it. Objective would be:
|
||
system(paste0(cmake_cmd, " ..")) # Must build twice for Windows due sh.exe in Rtools | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not sure the
rm -rf
can work in windows or not. you can useunlink("./*", recursive = TRUE)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It works with your method.
rm rf
works, but I was denied access to remove.
or..
apparently.