mirror of
https://github.com/mkxp-z/mkxp-z.git
synced 2025-09-10 12:02:53 +02:00
Housecleaning
This commit is contained in:
parent
9964b0fb7f
commit
e511d71875
3 changed files with 3 additions and 7 deletions
|
@ -772,7 +772,7 @@ static void showExc(VALUE exc, const BacktraceData &btData) {
|
|||
}
|
||||
|
||||
static void mriBindingExecute() {
|
||||
#if RAPI_FULL > 200
|
||||
#if RAPI_MAJOR > 2
|
||||
/* Normally only a ruby executable would do a sysinit,
|
||||
* but not doing it will lead to crashes due to closed
|
||||
* stdio streams on some platforms (eg. Windows) */
|
||||
|
@ -788,9 +788,8 @@ static void mriBindingExecute() {
|
|||
rb_eval_string("$KCODE='U'");
|
||||
#endif
|
||||
|
||||
#if RAPI_FULL >= 300 || defined(MKXPZ_JIT)
|
||||
const char* rboptions[] = {"", "--disable-gems", "--jit-verbose=1", "--jit-max-cache=100", "--jit-min-calls=100000", "-e "};
|
||||
void* node = ruby_process_options(6, const_cast<char**>(rboptions));
|
||||
#if RAPI_MAJOR >= 3
|
||||
void* node = ruby_process_options(argc, argv);
|
||||
int state;
|
||||
bool valid = ruby_executable_node(node, &state);
|
||||
state = ruby_exec_node(node);
|
||||
|
|
|
@ -167,7 +167,6 @@ elif host_system == 'darwin'
|
|||
warning('Please consider using the Xcode project located in the `macos` directory instead.')
|
||||
else
|
||||
subdir('linux')
|
||||
add_project_arguments('-std=c++11', language: 'objcpp')
|
||||
rpath = '$ORIGIN/lib'
|
||||
if get_option('appimage') != true
|
||||
if sizeof['long'] == 8 and get_option('force32') != true
|
||||
|
|
|
@ -112,8 +112,6 @@ StringMap &HTTPRequest::headers() {
|
|||
HTTPResponse HTTPRequest::get() {
|
||||
HTTPResponse ret;
|
||||
auto target = readURL(destination.c_str());
|
||||
auto t = getHost(target).c_str();
|
||||
auto tt = getPath(target).c_str();
|
||||
httplib::Client client(getHost(target).c_str());
|
||||
httplib::Headers head;
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue