Re: [Tinycc-devel] Compilation on Mac

2016-04-24 Thread David Mertens
assaf,

Thank you! I am not a travis configuration guru, so this configuration file
is very helpful!

David

On Tue, Apr 19, 2016 at 1:30 PM, Assaf Gordon  wrote:

> Hello Sergey,
>
> On 04/19/2016 10:21 AM, Sergey Korshunoff wrote:
>
>> Is there someone who can help to improve current tcc for Mac?
>> Is it possible to download some MacOS ISO (x86)?
>>
>>
> GitHub + Travis-CI can check multiple OSes including OS-X.
>
> The attached change will do so.
>
> Build result example:
>  https://travis-ci.org/agordon/tinycc-mirror/builds/124249388
>
> If you want to take it further and test multiple OS-x versions, something
> like the following will do:
>   https://github.com/agordon/pretest-macos-runs/blob/master/.travis.yml
>
> While this doesn't allow debugging or interactive development, it's better
> than nothing,
> and will keep you posted on whether OS-X builds are broken.
>
>
> regards,
>  - assaf
>
>
> ___
> Tinycc-devel mailing list
> Tinycc-devel@nongnu.org
> https://lists.nongnu.org/mailman/listinfo/tinycc-devel
>
>


-- 
 "Debugging is twice as hard as writing the code in the first place.
  Therefore, if you write the code as cleverly as possible, you are,
  by definition, not smart enough to debug it." -- Brian Kernighan
___
Tinycc-devel mailing list
Tinycc-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/tinycc-devel


Re: [Tinycc-devel] Compilation on Mac

2016-04-19 Thread Assaf Gordon

Hello Sergey,

On 04/19/2016 10:21 AM, Sergey Korshunoff wrote:

Is there someone who can help to improve current tcc for Mac?
Is it possible to download some MacOS ISO (x86)?



GitHub + Travis-CI can check multiple OSes including OS-X.

The attached change will do so.

Build result example:
 https://travis-ci.org/agordon/tinycc-mirror/builds/124249388

If you want to take it further and test multiple OS-x versions, something like 
the following will do:
  https://github.com/agordon/pretest-macos-runs/blob/master/.travis.yml

While this doesn't allow debugging or interactive development, it's better than 
nothing,
and will keep you posted on whether OS-X builds are broken.


regards,
 - assaf

>From beed1bb282a0f5e19ee7f9f6547654ce2fff839b Mon Sep 17 00:00:00 2001
From: Assaf Gordon 
Date: Tue, 19 Apr 2016 13:02:25 -0400
Subject: [PATCH] travis-CI: build on multiple platforms

---
 .travis.yml | 13 +
 1 file changed, 13 insertions(+)

diff --git a/.travis.yml b/.travis.yml
index b455aa3..5b88df7 100644
--- a/.travis.yml
+++ b/.travis.yml
@@ -1 +1,14 @@
 language: c
+
+os:
+ - linux
+ - osx
+
+before_install:
+ - if [ `uname` = "Linux" ]; then
+  sudo apt-get update -qq -y;
+  sudo apt-get install -y texinfo;
+   elif [ `uname` = "Darwin" ]; then
+  brew update;
+  brew install texinfo;
+   fi
-- 
1.9.1

___
Tinycc-devel mailing list
Tinycc-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/tinycc-devel


Re: [Tinycc-devel] Compilation on Mac

2016-04-19 Thread Michael B. Smith
Look up Hackintosh.

That being said, if tcc can run under Darwin (a *BSD derivative) it should run 
under MacOS, since MacOS is built on Darwin. Darwin is supposed to be "free", 
but I don't know how current it is. It's been a couple of years since I messed 
with it.

-Original Message-
From: Tinycc-devel 
[mailto:tinycc-devel-bounces+michael=theessentialexchange@nongnu.org] On 
Behalf Of Sergey Korshunoff
Sent: Tuesday, April 19, 2016 7:21 AM
To: tinycc-devel@nongnu.org
Subject: [Tinycc-devel] Compilation on Mac

Hi!
> David Mertens:
> My fork dates back to 2013. At that time, [mob] compiled on Mac, 
> Linux, and Windows, and > "tcc -run" functioned on all three platforms. This 
> functionality is critical for my uses. In the summer of 2014 I decided to 
> update my fork by merging in the latest [mob], only to discover > that tcc no 
> longer compiled on Mac!

Is there someone who can help to improve current tcc for Mac?
Is it possible to download some MacOS ISO (x86)?

PS: I never tried to use MacOS.

___
Tinycc-devel mailing list
Tinycc-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/tinycc-devel

___
Tinycc-devel mailing list
Tinycc-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/tinycc-devel


[Tinycc-devel] Compilation on Mac

2016-04-19 Thread Sergey Korshunoff
Hi!
> David Mertens:
> My fork dates back to 2013. At that time, [mob] compiled on Mac, Linux, and 
> Windows, and > "tcc -run" functioned on all three platforms. This 
> functionality is critical for my uses. In the
> summer of 2014 I decided to update my fork by merging in the latest [mob], 
> only to discover > that tcc no longer compiled on Mac!

Is there someone who can help to improve current tcc for Mac?
Is it possible to download some MacOS ISO (x86)?

PS: I never tried to use MacOS.

___
Tinycc-devel mailing list
Tinycc-devel@nongnu.org
https://lists.nongnu.org/mailman/listinfo/tinycc-devel