Skip to content

Corrected handling of YASM binary. Defined ASM_NASM environment variable.#13

Merged
Sibras merged 2 commits intoShiftMediaProject:masterfrom
Doomster14:master
Jan 12, 2024
Merged

Corrected handling of YASM binary. Defined ASM_NASM environment variable.#13
Sibras merged 2 commits intoShiftMediaProject:masterfrom
Doomster14:master

Conversation

@Doomster14
Copy link
Contributor

Don't delete a bundled YASM binary.
Don't write to the script folder which may be read-only.
Minor corrections.
Define ASM_NASM environment variable for usage with CMake unless already defined.

Defining ASM_NASM is needed in our environment, but I don't know whether it is appropriate in general. So, I put this feature into a separate commit.

Comment on lines +344 to +348
:Finalize
REM Define ASM_NASM for usage with CMake unless already defined
if "%ASM_NASM%"=="" (
powershell.exe -Command "[Environment]::SetEnvironmentVariable('ASM_NASM', '%VCINSTALLDIR%\yasm.exe', 'Machine')"
)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This probably shouldnt be here. For one there is a seperate installer for nasm so we shouldnt be setting a nasm vriable in a yasm install script

@Sibras Sibras merged commit 6730f44 into ShiftMediaProject:master Jan 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants