mirror of
https://github.com/dense-analysis/ale.git
synced 2026-01-20 18:14:33 +08:00
Merge pull request #3178 from sudobash1/expand_at
Fixes #3092 - Implement loading `@file` c arguments
This commit is contained in:
@@ -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',
|
||||
\ )
|
||||
|
||||
3
test/test_c_projects/makefile_project/args
Normal file
3
test/test_c_projects/makefile_project/args
Normal file
@@ -0,0 +1,3 @@
|
||||
foolib.a
|
||||
-DARGS1
|
||||
@subdir/args
|
||||
1
test/test_c_projects/makefile_project/subdir/args
Normal file
1
test/test_c_projects/makefile_project/subdir/args
Normal file
@@ -0,0 +1 @@
|
||||
-DARGS2
|
||||
Reference in New Issue
Block a user