Add config
authorDongHun Kwak <dh0128.kwak@samsung.com>
Mon, 13 Feb 2023 06:57:29 +0000 (15:57 +0900)
committerDongHun Kwak <dh0128.kwak@samsung.com>
Mon, 13 Feb 2023 06:57:29 +0000 (15:57 +0900)
packaging/rust-proc-macro2.spec

index 8d6447ea2ec185c1f3b66968d7b774ce460e0d27..3b678c1db436fd2dd22fce2f836ac61f95a3bf63 100644 (file)
@@ -39,7 +39,13 @@ cp %{SOURCE1} .
 %build
 %{rustc_dylib_build} \
         --crate-name=%{real_crate_name} \
-        -L%{_libdir} -lunicode_ident \
+        -lunicode_ident \
+        --cfg='feature="default"' \
+        --cfg='feature="proc-macro"' \
+        --cfg='feature="span-locations"' \
+        --cfg=span_locations \
+        --cfg=use_proc_macro \
+        --cfg=wrap_proc_macro \
         ./src/lib.rs
 
 # ==========================================================