mirror of
https://github.com/asmjit/asmjit.git
synced 2025-12-17 20:44:37 +03:00
[Bug] Don't unlink immediately when creating anonymous memory file, switch to GH actions (Fixes #312)
This commit is contained in:
@@ -31,7 +31,8 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
|
||||
#include "./asmjit_test_opcode.h"
|
||||
#include "cmdline.h"
|
||||
#include "asmjit_test_opcode.h"
|
||||
|
||||
using namespace asmjit;
|
||||
|
||||
@@ -63,7 +64,8 @@ struct TestErrorHandler : public ErrorHandler {
|
||||
|
||||
typedef void (*VoidFunc)(void);
|
||||
|
||||
int main() {
|
||||
int main(int argc, char* argv[]) {
|
||||
CmdLine cmdLine(argc, argv);
|
||||
TestErrorHandler eh;
|
||||
|
||||
OpcodeDumpInfo infoList[] = {
|
||||
@@ -74,6 +76,8 @@ int main() {
|
||||
{ Environment::kArchX64, true , true }
|
||||
};
|
||||
|
||||
bool quiet = cmdLine.hasArg("--quiet");
|
||||
|
||||
for (uint32_t i = 0; i < ASMJIT_ARRAY_SIZE(infoList); i++) {
|
||||
const OpcodeDumpInfo& info = infoList[i];
|
||||
|
||||
@@ -89,7 +93,8 @@ int main() {
|
||||
#ifndef ASMJIT_NO_LOGGING
|
||||
FileLogger logger(stdout);
|
||||
logger.addFlags(FormatOptions::kFlagMachineCode);
|
||||
code.setLogger(&logger);
|
||||
if (!quiet)
|
||||
code.setLogger(&logger);
|
||||
#endif
|
||||
|
||||
x86::Assembler a(&code);
|
||||
|
||||
Reference in New Issue
Block a user