mirror of
https://github.com/ANL-CEEESA/MIPLearn.jl.git
synced 2025-12-06 00:18:51 -06:00
Improve sysimage.jl
This commit is contained in:
15
Makefile
15
Makefile
@@ -1,17 +1,16 @@
|
||||
# UnitCommitment.jl: Optimization Package for Security-Constrained Unit Commitment
|
||||
# Copyright (C) 2020, UChicago Argonne, LLC. All rights reserved.
|
||||
# Released under the modified BSD license. See COPYING.md for more details.
|
||||
# MIPLearn: Extensible Framework for Learning-Enhanced Mixed-Integer Optimization
|
||||
# Copyright (C) 2020-2021, UChicago Argonne, LLC. All rights reserved.
|
||||
# Released under the modified BSD license. See COPYING.md for more details.
|
||||
|
||||
JULIA := julia --color=yes --project=@.
|
||||
VERSION := 0.2
|
||||
|
||||
build/sysimage.so: src/utils/sysimage.jl Project.toml Manifest.toml
|
||||
mkdir -p build
|
||||
$(JULIA) --trace-compile=build/precompile.jl test/runtests.jl
|
||||
$(JULIA) src/utils/sysimage.jl
|
||||
build/sysimage.so: src/utils/sysimage.jl Project.toml
|
||||
julia --project=. -e "using Pkg; Pkg.instantiate()"
|
||||
$(JULIA) src/utils/sysimage.jl test/runtests.jl
|
||||
|
||||
clean:
|
||||
rm -rf build/*
|
||||
rm -rfv build/*
|
||||
|
||||
test: build/sysimage.so
|
||||
$(JULIA) --sysimage build/sysimage.so test/runtests.jl
|
||||
|
||||
Reference in New Issue
Block a user