mirror of
https://gitlab.com/scemama/irpf90.git
synced 2024-12-21 11:53:32 +01:00
Corrected wrong -I flags
This commit is contained in:
parent
309507d67a
commit
c63d209b92
11
src/ninja.py
11
src/ninja.py
@ -269,20 +269,18 @@ def run():
|
|||||||
# Environment variables
|
# Environment variables
|
||||||
|
|
||||||
try: FC = os.environ["FC"]
|
try: FC = os.environ["FC"]
|
||||||
except KeyError: FC="gfortran -ffree-line-length-none -I ."
|
except KeyError: FC="gfortran -ffree-line-length-none"
|
||||||
|
|
||||||
try: AR = os.environ["AR"]
|
try: AR = os.environ["AR"]
|
||||||
except KeyError: AR="ar"
|
except KeyError: AR="ar"
|
||||||
|
|
||||||
try: CC = os.environ["CC"]
|
try: CC = os.environ["CC"]
|
||||||
except KeyError: CC="gcc -I ."
|
except KeyError: CC="gcc"
|
||||||
|
|
||||||
try: CXX = os.environ["CXX"]
|
try: CXX = os.environ["CXX"]
|
||||||
except KeyError: CXX="g++ -I ."
|
except KeyError: CXX="g++"
|
||||||
|
|
||||||
includes = [ "-I %s "%(irpdir) ]
|
includes = [ "-I %s"%(i) for i in command_line.include_dir ]
|
||||||
for i in command_line.include_dir:
|
|
||||||
includes.append( "-I %s%s "%(irpdir,i) )
|
|
||||||
|
|
||||||
FC += " "+' '.join(includes)
|
FC += " "+' '.join(includes)
|
||||||
CC += " "+' '.join(includes)
|
CC += " "+' '.join(includes)
|
||||||
@ -393,7 +391,6 @@ def run():
|
|||||||
|
|
||||||
for i in l_targets:
|
for i in l_targets:
|
||||||
output.append(create_build_target(i, l_common_o))
|
output.append(create_build_target(i, l_common_o))
|
||||||
# output.append(create_build_target(i))
|
|
||||||
|
|
||||||
# Remaining files
|
# Remaining files
|
||||||
for i in l_common_s:
|
for i in l_common_s:
|
||||||
|
Loading…
Reference in New Issue
Block a user