Replies: 2 comments
-
|
Hi, our CI tests on Windows use MSVC. Otherwise you can look for Lines 387 to 425 in 437f280 I guess |
Beta Was this translation helpful? Give feedback.
-
|
I really appreciate your quick response! #!/usr/bin/env python3
JSON_DATA_TEXT = """{
"compiler": "C:/Program Files (x86)/Microsoft Visual Studio/2019/Enterprise/VC/Tools/MSVC/14.29.30133/bin/Hostx64/x64/cl.exe",
"compiler_id": "MSVC",
"compiler_version": "19.29.30154.0",
"msvc_version": "1929",
"includes": "-ID:/a/souffle/souffle/src/include -ID:/a/souffle/souffle/build/vcpkg_installed/x64-windows/include",
"std_flag": "-std:c++17",
"cxx_flags": "/bigobj -openmp",
"cxx_link_flags": "",
"release_cxx_flags": "/O2 /Ob2 /DNDEBUG /MD",
"debug_cxx_flags": "/Zi /Ob0 /Od /RTC1 /MDd",
"definitions": "-DRAM_DOMAIN_SIZE=64 -DUSE_LIBZ -DUSE_SQLITE -DUSE_CUSTOM_GETOPTLONG",
"compile_options": " /Zc:__cplusplus /bigobj /wd5105 /wd6326 /permissive- /Zc:preprocessor /EHsc",
"link_options": "/link D:/a/souffle/souffle/build/vcpkg_installed/x64-windows/lib/sqlite3.lib D:/a/souffle/souffle/build/vcpkg_installed/x64-windows/lib/zlib.lib ",
"rpaths": "D:/a/souffle/souffle/build/vcpkg_installed/x64-windows/lib;D:/a/souffle/souffle/build/vcpkg_installed/x64-windows/lib",
"outname_fmt": "/Fe:{}",
"libdir_fmt": "/libpath:{}",
"libname_fmt": "{}.lib",
"rpath_fmt": "",
"path_delimiter": ";",
"exe_extension": ".exe",
"source_include_dir": "D:/a/souffle/souffle/src/include",
"jni_includes": ";"
}"""I don't know if these libraries were missing so the linker defaulted to using dll's assuming that's its behavior. Is the source_include_dir statically linked by default? |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I was wondering if it was possible to statically compile a souffle generated c++ file to run natively on windows.

There were no issues at all when I compiled it with g++ on linux. I'm sure I'm using the wrong versions when attempting it on windows since there are just so many outputted errors. For my usecase, I want it to be able to run natively on windows without any emulation like WSL, Cygwin, etc. Is there any documented process for compiling a generated c++ file to run natively on windows instead of building the souffle interpreter?
Beta Was this translation helpful? Give feedback.
All reactions