Compare commits
3 Commits
prerelease
...
prerelease
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f9f8ca08c6 | ||
|
|
0666b02c13 | ||
|
|
1654507835 |
2
.github/workflows/release.yml
vendored
2
.github/workflows/release.yml
vendored
@@ -122,7 +122,7 @@ jobs:
|
||||
|
||||
- name: Build Project
|
||||
run: |
|
||||
make
|
||||
make windows
|
||||
|
||||
- name: Package
|
||||
run: |
|
||||
|
||||
8
Makefile
8
Makefile
@@ -8,14 +8,6 @@ FLEX_TOOL = flex
|
||||
|
||||
CFILES = external/xxhash/xxhash.c external/cwalk/src/cwalk.c external/libdye/src/dye.c $(shell find src -name '*.c')
|
||||
|
||||
# If target is "windows", override FLEX_TOOL
|
||||
ifeq ($(MAKECMDGOALS),windows)
|
||||
BINARY = bin/argon.exe
|
||||
FLEX_TOOL = win_flex
|
||||
|
||||
CFILES = external/xxhash/xxhash.c external/cwalk/src/cwalk.c external/libdye/src/dye.c $(shell dir /b /s src\*.c)
|
||||
endif
|
||||
|
||||
LEXER_SRC = src/lexer/lex.l
|
||||
LEXER_C = src/lexer/lex.yy.c
|
||||
LEXER_H = src/lexer/lex.yy.h
|
||||
|
||||
@@ -16,8 +16,9 @@
|
||||
#include <string.h>
|
||||
|
||||
#if defined(_WIN32)
|
||||
#include <psapi.h>
|
||||
#define _WIN32_WINNT 0x0602
|
||||
#include <windows.h>
|
||||
#include <psapi.h>
|
||||
|
||||
double get_memory_usage_mb() {
|
||||
PROCESS_MEMORY_COUNTERS pmc;
|
||||
|
||||
Reference in New Issue
Block a user