From 681ed30bcfc6ee0dd137fbf7453dfa9f21ca5e83 Mon Sep 17 00:00:00 2001 From: Radon Rosborough Date: Sun, 10 Oct 2021 11:24:06 -0700 Subject: [PATCH] [#41] Fix segfault for eC --- langs/ec.yaml | 40 +++++++++++++++++++++++++++++++--------- 1 file changed, 31 insertions(+), 9 deletions(-) diff --git a/langs/ec.yaml b/langs/ec.yaml index 73a26a8..d01c606 100644 --- a/langs/ec.yaml +++ b/langs/ec.yaml @@ -29,6 +29,31 @@ install: - libjpeg-turbo8 - libpng16-16 - libxrender1 + files: + "/opt/ec/skel/main.epj": | + { + "Version": 0.2, + "ModuleName": "main", + "Options": { + "Warnings": "All", + "TargetType": "Executable", + "TargetFileName": "main", + "Libraries": ["ecere"] + }, + "Configurations": [ + { + "Name": "Release", + "Options": { + "Debug": false, + "Optimization": "Speed", + "FastMath": true + } + } + ], + "Files": ["main.ec"], + "ResourcesPath": "", + "Resources": [] + } # Release 0.44.15 failed to compile with "multiple definition" # errors from ld, so use the master branch instead. manual: | @@ -48,14 +73,11 @@ template: | } } +setup: | + cp -R /opt/ec/skel/* "$PWD/" + epj2make -o Makefile main.epj >/dev/null + compile: | - export LD_LIBRARY_PATH=/usr/local/lib/ec - ecp -c main.ec -o main.sym - ecc -c main.ec -o main.c - ecs -console main.sym main.imp -o main.main.ec - ecp -c main.main.ec -o main.main.sym - ecc -c main.main.ec -o main.main.c - clang main.c main.main.c -lecereCOM -o main + make LD_LIBRARY_PATH=/usr/local/lib/ec run: | - ./main -helloStatus: 139 + ./obj/release.linux/main