Skip to content

Commit ca23412

Browse files
committed
fix cross compilation path issue (continue)
1 parent 82ae823 commit ca23412

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

src/macro_include_array.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
macro_rules! lazy_static_include_array {
77
( @i $name:ident: [$t:ident; $s:expr], $path:expr ) => {
88
{
9-
let path = $crate::slash_formatter::concat_with_file_separator!(env!("CARGO_MANIFEST_DIR"), $path);
9+
let path = $crate::slash_formatter::concat_with_file_separator_debug_release!(env!("CARGO_MANIFEST_DIR"), $path);
1010

1111
let text = ::std::fs::read_to_string(path).unwrap();
1212

@@ -71,7 +71,7 @@ macro_rules! lazy_static_include_array {
7171
};
7272
( @u $name:ident: [$t:ident; $s:expr], $path:expr ) => {
7373
{
74-
let path = $crate::slash_formatter::concat_with_file_separator!(env!("CARGO_MANIFEST_DIR"), $path);
74+
let path = $crate::slash_formatter::concat_with_file_separator_debug_release!(env!("CARGO_MANIFEST_DIR"), $path);
7575

7676
let text = ::std::fs::read_to_string(path).unwrap();
7777

@@ -120,7 +120,7 @@ macro_rules! lazy_static_include_array {
120120
};
121121
( @f $name:ident: [$t:ident; $s:expr], $path:expr ) => {
122122
{
123-
let path = $crate::slash_formatter::concat_with_file_separator!(env!("CARGO_MANIFEST_DIR"), $path);
123+
let path = $crate::slash_formatter::concat_with_file_separator_debug_release!(env!("CARGO_MANIFEST_DIR"), $path);
124124

125125
let text = ::std::fs::read_to_string(path).unwrap();
126126

@@ -200,7 +200,7 @@ macro_rules! lazy_static_include_array {
200200
};
201201
( @c $name:ident: [$t:ident; $s:expr], $path:expr ) => {
202202
{
203-
let path = $crate::slash_formatter::concat_with_file_separator!(env!("CARGO_MANIFEST_DIR"), $path);
203+
let path = $crate::slash_formatter::concat_with_file_separator_debug_release!(env!("CARGO_MANIFEST_DIR"), $path);
204204

205205
let text = ::std::fs::read_to_string(path).unwrap();
206206

@@ -236,7 +236,7 @@ macro_rules! lazy_static_include_array {
236236
};
237237
( @b $name:ident: [$t:ident; $s:expr], $path:expr ) => {
238238
{
239-
let path = $crate::slash_formatter::concat_with_file_separator!(env!("CARGO_MANIFEST_DIR"), $path);
239+
let path = $crate::slash_formatter::concat_with_file_separator_debug_release!(env!("CARGO_MANIFEST_DIR"), $path);
240240

241241
let text = ::std::fs::read_to_string(path).unwrap();
242242

@@ -274,7 +274,7 @@ macro_rules! lazy_static_include_array {
274274
{
275275
use ::std::mem::{forget, transmute};
276276

277-
let path = $crate::slash_formatter::concat_with_file_separator!(env!("CARGO_MANIFEST_DIR"), $path);
277+
let path = $crate::slash_formatter::concat_with_file_separator_debug_release!(env!("CARGO_MANIFEST_DIR"), $path);
278278

279279
let text = ::std::fs::read_to_string(path).unwrap();
280280

src/macro_include_bytes.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ macro_rules! lazy_static_include_bytes {
4444
use ::std::fs;
4545
use ::std::mem::{forget, transmute};
4646

47-
let path = $crate::slash_formatter::concat_with_file_separator!(env!("CARGO_MANIFEST_DIR"), $path);
47+
let path = $crate::slash_formatter::concat_with_file_separator_debug_release!(env!("CARGO_MANIFEST_DIR"), $path);
4848

4949
let data = fs::read(path).unwrap();
5050

src/macro_include_str.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ macro_rules! lazy_static_include_str {
6363
use ::std::fs;
6464
use ::std::mem::{forget, transmute};
6565

66-
let path = $crate::slash_formatter::concat_with_file_separator!(env!("CARGO_MANIFEST_DIR"), $path);
66+
let path = $crate::slash_formatter::concat_with_file_separator_debug_release!(env!("CARGO_MANIFEST_DIR"), $path);
6767

6868
let text = fs::read_to_string(path).unwrap();
6969

0 commit comments

Comments
 (0)