Compare commits
5 Commits
prerelease
...
prerelease
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
d08b307c6e | ||
|
|
6474329afc | ||
|
|
c49e67c839 | ||
|
|
25cb96e473 | ||
|
|
f11890a8b3 |
13
.github/workflows/release.yml
vendored
13
.github/workflows/release.yml
vendored
@@ -117,12 +117,19 @@ jobs:
|
||||
base-devel
|
||||
mingw-w64-x86_64-gcc
|
||||
mingw-w64-x86_64-make
|
||||
mingw-w64-x86_64-gmp
|
||||
mingw-w64-x86_64-gc
|
||||
mingw-w64-x86_64-python
|
||||
mingw-w64-x86_64-python-pip
|
||||
|
||||
- name: Install Conan
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
pip install conan
|
||||
conan profile detect
|
||||
|
||||
- name: Build Project
|
||||
run: |
|
||||
make windows
|
||||
conan install . --profile mingw-profile.txt --build=missing
|
||||
conan build .
|
||||
|
||||
- name: Package
|
||||
run: |
|
||||
|
||||
@@ -54,17 +54,13 @@ find_package(gmp REQUIRED)
|
||||
target_compile_options(argon PRIVATE -O3 -Wall -Wextra -Wno-unused-function -s)
|
||||
|
||||
target_link_libraries(argon PRIVATE
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/external/lib/libgc.a"
|
||||
"${CMAKE_CURRENT_SOURCE_DIR}/external/lib/libgmp.a"
|
||||
BDWgc::BDWgc
|
||||
gmp::gmp
|
||||
m
|
||||
)
|
||||
|
||||
target_include_directories(argon PRIVATE
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/src/lexer
|
||||
${BDWgc_INCLUDE_DIRS} # BDWgc headers
|
||||
${GMP_INCLUDE_DIR} # GMP headers
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/external/cwalk/include
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/external/libdye/include
|
||||
)
|
||||
|
||||
add_custom_command(TARGET argon POST_BUILD COMMAND ${CMAKE_STRIP} $<TARGET_FILE:argon>)
|
||||
6
Makefile
6
Makefile
@@ -12,7 +12,11 @@ LEXER_SRC = src/lexer/lex.l
|
||||
LEXER_C = src/lexer/lex.yy.c
|
||||
LEXER_H = src/lexer/lex.yy.h
|
||||
CFLAGS = $(ARCHFLAGS) -lm -lgc -lgmp -Wall -Wextra -Wno-unused-function -Werror=unused-result -Iexternal/cwalk/include -Iexternal/libdye/include
|
||||
LDFLAGS = -Wl,-Bstatic -lgc -lgmp -Wl,-Bdynamic -lm
|
||||
LDFLAGS = -lgc -lgmp -lm
|
||||
|
||||
ifeq ($(MAKECMDGOALS),windows)
|
||||
LDFLAGS = -Wl,-Bstatic -lgc -lgmp -Wl,-Bdynamic -lm
|
||||
endif
|
||||
|
||||
all: $(BINARY)
|
||||
|
||||
|
||||
12
mingw-profile.txt
Normal file
12
mingw-profile.txt
Normal file
@@ -0,0 +1,12 @@
|
||||
[settings]
|
||||
os=Windows
|
||||
compiler=gcc
|
||||
compiler.version=12
|
||||
compiler.libcxx=libstdc++11
|
||||
compiler.threads=posix
|
||||
compiler.exception=seh
|
||||
arch=x86_64
|
||||
build_type=Release
|
||||
|
||||
[tool_requires]
|
||||
mingw-builds/12.2.0
|
||||
Reference in New Issue
Block a user