Merge pull request #3178 from sudobash1/expand_at

Fixes #3092 - Implement loading `@file` c arguments
This commit is contained in:
w0rp
2020-08-19 00:15:34 +01:00
committed by GitHub
4 changed files with 64 additions and 1 deletions

View File

@@ -366,3 +366,14 @@ Execute(CFlags we dont want to pass):
\ 'gcc -Wl,option -Wa,option -Wp,option filename.c somelib.a '
\ . '-fdump-file=name -fdiagnostics-arg -fno-show-column'
\ )
Execute(Expanding @file in CFlags):
AssertEqual
\ '-DARGS1 -DARGS2 -O2',
\ ale#c#ParseCFlags(
\ ale#path#Simplify(g:dir. '/test_c_projects/makefile_project'),
\ 'gcc'
\ . ' -g'
\ . ' @./args'
\ . ' -O2',
\ )

View File

@@ -0,0 +1,3 @@
foolib.a
-DARGS1
@subdir/args

View File

@@ -0,0 +1 @@
-DARGS2