File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -62,6 +62,7 @@ cargo:rustc-link-lib=static=foo
6262cargo:rustc-link-search=native=/path/to/foo 
6363cargo:rustc-cfg=foo 
6464cargo:rustc-env=FOO=bar 
65+ cargo:rustc-cdylib-link-arg=-Wl,-soname,libfoo.so.1.2.3 
6566# arbitrary user-defined metadata 
6667cargo:root=/path/to/foo 
6768cargo:libdir=/path/to/foo/lib 
@@ -93,6 +94,9 @@ crate is built:
9394  This is useful for embedding additional metadata in crate's code,
9495  such as the hash of Git HEAD or the unique identifier of a continuous
9596  integration server.
97+ *  ` rustc-cdylib-link-arg=FLAG `  is a flag passed to the compiler as
98+   ` -C link-arg=FLAG `  when building a ` cdylib ` . Its usage is highly platform
99+   specific. It is useful to set the shared library version or the runtime-path.
96100*  ` rerun-if-changed=PATH `  is a path to a file or directory which indicates that
97101  the build script should be re-run if it changes (detected by a more-recent
98102  last-modified timestamp on the file). Normally build scripts are re-run if
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments