-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow passing dict to <lang>_args kwargs
The dict must map a target type to a list of compiler args. This makes possible to pass different c_args to static and shared libraries when using both_libraries(). In that case sources will be compiled twice. Closes #3304.
- Loading branch information
Showing
5 changed files
with
64 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,15 @@ | ||
#include <stdlib.h> | ||
#include "mylib.h" | ||
|
||
DO_IMPORT int func(); | ||
DO_IMPORT int retval; | ||
|
||
int main(int argc, char **arg) { | ||
return func() == retval ? 0 : 1; | ||
int main(int argc, char *argv[]) { | ||
if (func() != retval) | ||
return 1; | ||
|
||
if (argc > 1 && atoi(argv[1]) != retval) | ||
return 1; | ||
|
||
return 0; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters