taylor icon indicating copy to clipboard operation
taylor copied to clipboard

Can't build without cmake files

Open iankronquist opened this issue 10 years ago • 3 comments

I tried to take this for a spin and got an error:

$ make
   CC   src/system.cmake: clang-3.8: No such file or directory
make: *** [src/system.o] Error 1

iankronquist avatar Dec 14 '15 20:12 iankronquist

That's a lack of a carriage return. This project doesn't use cmake. However, I think it's requiring clang-3.8. How should I go about installing that?

bjackson avatar Jan 12 '16 06:01 bjackson

Are you running on OS X? Just change from clang-3.8 in the makefile to clang.

You'll also need to change the @_silgen_name to @asmname in main.swift.

bjackson avatar Jan 12 '16 06:01 bjackson

The Makefile assumes you built Swift from source and have the path to the bin/ directory from the Swift build in your $PATH. Building Swift from source should also get you a clang-3.8. Building from a binary distribution of Swift, such as the one that comes with XCode, is unsupported.

klange avatar Jan 15 '16 18:01 klange