diff --git a/.gitignore b/.gitignore index 141fb7ff..5ce9fecb 100644 --- a/.gitignore +++ b/.gitignore @@ -26,6 +26,7 @@ .ipynb_checkpoints nohup.out temp +tmp file temp.txt compile_info diff --git a/hikyuu_cpp/hikyuu_server/xmake.lua b/hikyuu_cpp/hikyuu_server/xmake.lua index c6013d6a..ea52eea2 100644 --- a/hikyuu_cpp/hikyuu_server/xmake.lua +++ b/hikyuu_cpp/hikyuu_server/xmake.lua @@ -1,5 +1,6 @@ target("hkuserver") set_kind("binary") + set_default(false) add_packages("boost", "fmt", "spdlog", "flatbuffers", "nng", "nlohmann_json", "sqlite3", "zlib") add_deps("hikyuu") diff --git a/hikyuu_pywrap/xmake.lua b/hikyuu_pywrap/xmake.lua index b32d1d4b..f03cd412 100644 --- a/hikyuu_pywrap/xmake.lua +++ b/hikyuu_pywrap/xmake.lua @@ -3,10 +3,11 @@ add_requires("pybind11", {system = false, alias = "pybind11"}) target("core") set_kind("shared") - if is_mode("debug") then - set_default(false) --会默认禁用这个target的编译,除非显示指定xmake build _hikyuu才会去编译,但是target还存在,里面的files会保留到vcproj - --set_enable(false) --set_enable(false)会彻底禁用这个target,连target的meta也不会被加载,vcproj不会保留它 - end + set_default(false) + -- if is_mode("debug") then + -- set_default(false) --会默认禁用这个target的编译,除非显示指定xmake build _hikyuu才会去编译,但是target还存在,里面的files会保留到vcproj + -- --set_enable(false) --set_enable(false)会彻底禁用这个target,连target的meta也不会被加载,vcproj不会保留它 + -- end add_options("stackstrace") diff --git a/setup.py b/setup.py index 55e511b6..ece9792d 100644 --- a/setup.py +++ b/setup.py @@ -118,7 +118,7 @@ def start_build(verbose=False, mode='release', feedback=True, worker_num=2): py_version = current_compile_info['py_version'] - # 如果 python版本或者编译模式发生变化,则编译依赖的 boost 库(boost.python) + # 如果 python版本或者编译模式发生变化,则重新编译 history_compile_info = get_history_compile_info() if py_version != history_compile_info[ 'py_version'] or history_compile_info['mode'] != mode: