包含标签 技术 的文章

GCC Instrumentation Options

https://gcc.gnu.org/onlinedocs/gcc/Instrumentation-Options.html -fsanitize=address, -fsanitize=thread,… Comments: (on github issue)……

阅读全文

KVM/libvirt forwarding ports to guest via iptables

# connections from outside sudo iptables -I FORWARD -o virbr0 -d 192.168.122.226 -j ACCEPT sudo iptables -t nat -A PREROUTING -p tcp --dport 8006 -j DNAT --to 192.168.122.226:8006 sudo iptables -t nat -A POSTROUTING -s 192.168.122.0/24 -j MASQUERADE # local subnet sudo iptables -A FORWARD -o virbr0 -m state --state RELATED,ESTABLISHED -j ACCEPT sudo iptables -A FORWARD -i virbr0 -o enp0s31f6 -j……

阅读全文

Lua 5.4.x CMakeLists.txt

cmake_minimum_required(VERSION 3.12) project(Lua) add_definitions(-DLUA_COMPAT_5_3) if(UNIX) add_definitions(-DLUA_USE_LINUX) endif(UNIX) ### force options if(WIN32) add_compile_options("$<$<C_COMPILER_ID:MSVC>:/utf-8>") add_compile_options("$<$<CXX_COMPILER_ID:MSVC>:/utf-8>") endif() # see https://www.lua.org/manual/5.4/readme.html#other ### build lib set(C_FILES lapi.c lcode.c lctype.c ldebug.c ldo.c ldump.c lfunc.c lgc.c llex.c lmem.c lobject.c lopcodes.c lparser.c lstate.c lstring.c ltable.c ltm.c lundump.c lvm.c lzio.c lauxlib.c lbaselib.c lcorolib.c ldblib.c liolib.c lmathlib.c loadlib.c loslib.c lstrlib.c ltablib.c lutf8lib.c linit.c) # prepend 'src/' list(TRANSFORM C_FILES PREPEND "src/") # in……

阅读全文