merge latest changes
This commit is contained in:
@@ -100,6 +100,7 @@ class LintersPaths:
|
||||
# demo
|
||||
"demo/json-model/json_parser.py",
|
||||
"demo/guide-python/external_memory.py",
|
||||
"demo/guide-python/sklearn_examples.py",
|
||||
"demo/guide-python/continuation.py",
|
||||
"demo/guide-python/callbacks.py",
|
||||
"demo/guide-python/cat_in_the_dat.py",
|
||||
|
||||
@@ -277,6 +277,19 @@ def test_with_cmake(args: argparse.Namespace) -> None:
|
||||
"Release",
|
||||
]
|
||||
)
|
||||
elif args.compiler == "none":
|
||||
subprocess.check_call(
|
||||
[
|
||||
"cmake",
|
||||
os.path.pardir,
|
||||
"-DUSE_OPENMP=ON",
|
||||
"-DR_LIB=ON",
|
||||
"-DCMAKE_CONFIGURATION_TYPES=Release",
|
||||
"-G",
|
||||
"Unix Makefiles",
|
||||
]
|
||||
)
|
||||
subprocess.check_call(["make", "-j", "install"])
|
||||
else:
|
||||
raise ValueError("Wrong compiler")
|
||||
with DirectoryExcursion(R_PACKAGE):
|
||||
@@ -333,9 +346,9 @@ if __name__ == "__main__":
|
||||
parser.add_argument(
|
||||
"--compiler",
|
||||
type=str,
|
||||
choices=["mingw", "msvc"],
|
||||
choices=["mingw", "msvc", "none"],
|
||||
help="Compiler used for compiling CXX code. Only relevant for windows build",
|
||||
default="mingw",
|
||||
default="none",
|
||||
required=False,
|
||||
)
|
||||
parser.add_argument(
|
||||
|
||||
Reference in New Issue
Block a user