File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change @@ -1773,17 +1773,17 @@ impl Build {
17731773 cmd. push_cc_arg ( format ! ( "-std{}{}" , separator, std) . into ( ) ) ;
17741774 }
17751775
1776+ for directory in self . include_directories . iter ( ) {
1777+ cmd. args . push ( "-I" . into ( ) ) ;
1778+ cmd. args . push ( directory. as_os_str ( ) . into ( ) ) ;
1779+ }
1780+
17761781 if let Ok ( flags) = self . envflags ( if self . cpp { "CXXFLAGS" } else { "CFLAGS" } ) {
17771782 for arg in flags {
17781783 cmd. push_cc_arg ( arg. into ( ) ) ;
17791784 }
17801785 }
17811786
1782- for directory in self . include_directories . iter ( ) {
1783- cmd. args . push ( "-I" . into ( ) ) ;
1784- cmd. args . push ( directory. as_os_str ( ) . into ( ) ) ;
1785- }
1786-
17871787 // If warnings and/or extra_warnings haven't been explicitly set,
17881788 // then we set them only if the environment doesn't already have
17891789 // CFLAGS/CXXFLAGS, since those variables presumably already contain
You can’t perform that action at this time.
0 commit comments