Skip to content

Commit

Permalink
Update integration test and fix bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
milasudril committed Mar 9, 2022
1 parent bfdc6f7 commit 3251428
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion integration_test/main.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ set -e
export install_dir=$(mktemp -d)
trap "rm -rf $install_dir" EXIT

bootsrap_from_version="2.0.0-beta-9" integration_test/bootstrap_from_release.sh
bootsrap_from_version="2.0.0-beta-11" integration_test/bootstrap_from_release.sh

target_dir=__targets integration_test/build_new_version.sh
exit_status=0
Expand Down
10 changes: 5 additions & 5 deletions recipes/cxx_compiler.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,21 +16,21 @@
def eprint(*args, **kwargs):
print(*args, file=sys.stderr, **kwargs)

def format_iquote(src_dir, target_dir, list):
def format_iquote(src_dir, target_dir, dirs):
ret = []
for item in list:
for item in dirs:
if src_dir == '.':
ret.append('-iquote%s'%(item))
ret.append('-iquote%s/%s'%(target_dir,item))
else:
ret.append('-iquote%s/%s'%(src_dir, item))
ret.append('-iquote%s/%s/%s'%(src_dir, target_dir,item))

ret.append('-iquote%s/%s/%s'%(os.getcwd(), target_dir, item))
return ret

def collect_cflags(src_dir, target_dir, src_file_dir, compiler_flags, dependencies):
tmp = []
tmp.extend(compiler_flags['cflags'])
iquote = [src_file_dir]
iquote = [os.path.relpath(src_file_dir, src_dir)]
iquote.extend(compiler_flags['iquote'])
tmp.extend(format_iquote(src_dir, target_dir, iquote))
for item in dependencies:
Expand Down

0 comments on commit 3251428

Please sign in to comment.