mirror of
https://github.com/vishapoberon/compiler.git
synced 2026-04-06 20:22:24 +00:00
builds with nvcc.
This commit is contained in:
parent
7ca08f1ef1
commit
d3ab6be2cf
2 changed files with 6 additions and 2 deletions
|
|
@ -17,5 +17,5 @@ rm -f *.o *.obj *.exe *.sym *.c *.h result new.asm $(basename "$PWD")
|
||||||
# NOTE: The cygwin 64 bit build has relocation errors with
|
# NOTE: The cygwin 64 bit build has relocation errors with
|
||||||
# these assembly generation options.
|
# these assembly generation options.
|
||||||
if [ "$COMPILER" = "gcc" -a "$FLAVOUR" != "cygwin.LP64.gcc" ]
|
if [ "$COMPILER" = "gcc" -a "$FLAVOUR" != "cygwin.LP64.gcc" ]
|
||||||
then export CFLAGS="-gstabs -g1 -Wa,-acdhln=new.asm -Wl,-Map=output.map"
|
then export CFLAGS="-g1 -Wa,-acdhln=new.asm -Wl,-Map=output.map"
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
|
|
@ -141,6 +141,10 @@ void determineCCompiler() {
|
||||||
compiler = "tcc";
|
compiler = "tcc";
|
||||||
cc = "tcc -g";
|
cc = "tcc -g";
|
||||||
staticlink = "";
|
staticlink = "";
|
||||||
|
#elif defined(__NVCC__)
|
||||||
|
compiler = "nvcc";
|
||||||
|
cc = "nvcc -g --compiler-options -fPIC";
|
||||||
|
staticlink = "";
|
||||||
#elif defined(__GNUC__)
|
#elif defined(__GNUC__)
|
||||||
compiler = "gcc";
|
compiler = "gcc";
|
||||||
if (strncasecmp(os, "cygwin", 6) == 0) {
|
if (strncasecmp(os, "cygwin", 6) == 0) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue