Different compiler directives on different computers

I want to make one of these, where each computer have one of the code run and not the other

#if MY_CONFIG_COMPUTER_1
    some code here
#if MY_CONFIG_COMPUTER_2
    some other code here
#else

The issue is that I am using Unity Collab to sync both computers, so every place where I can set custom compiler directives gets sync and end up equal on both computers. Is there any way to accomplish this?

If one computer was Mac and one was PC you could use the platform itself.

1 Like

Both are windows 10 machines

I’m curious why these need to be preprocessor directives. Whatever behavior you want is probably achievable with a config file and some regular “if” statements.

1 Like

If preprocessor directives are impossible, I will try that.
It’s because I am attempting to change a couple of const values on each computer, but I will change them to not be const if I really need to