Search Issue Tracker

Fixed in 2021.1.X

Votes

0

Found in

2019.4

2020.3

2020.3.11f1

2021.1

Issue ID

1350554

Regression

No

Platform dependent compilation preprocessor directives are not defined correctly when running a project in the batch mode

Scripting

-

How to reproduce:
1. Edit the path to the Unity.exe in the "case_1350554 >runCase.bat" batch script
2. Open the "runCase.bat" batch file
3. Wait until cmd closes
4. Open the "build.log" text file
5. Press "Ctrl + F" to open the search box and search for "Current Target"
6. Observe the log output after "Current Target" and "You are in"

Expected result: when the "Current Target" is "Switch" the output after "You are in" is "switch"
Actual result: when the "Current Target" is "Switch" the output after "You are in" is "standalone"

Reproducible with: 2019.4.29f1, 2020.3.16f1, 2021.1.0a5
Not reproducible with: 2021.1.0a6, 2021.1.17f1, 2021.2.0a9, 2021.2.0b7, 2022.1.0a5
Couldn't test with: 2021.2.0a1, 2021.2.0a8 (errors related to compiler)

  1. Resolution Note (fix version 2021.1):

    Fixed in 2021.1.0a6

Add comment

Log in to post comment

All about bugs

View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.